<BUG>when(operationFactory.getOperation(UIOperation.class, "/fxml/message.fxml", new Object[]{"Finished"})).thenReturn(successOperation);</BUG><CONTEXT>when(operationFactory.getOperation(GetMatchingCardAdaptersOperation.class, api)).thenReturn(operation);final Operation<Object> successOperation = mock(Operation.class);when(successOperation.perform()).thenReturn(new OperationResult<Object>(BasicOperationStatus.SUCCESS));when(operationFactory.getOperation(eq(UIOperation.class), eq("/fxml/provide-feedback.fxml"), any(Object[].class))).thenReturn(successOperation);<extra_id_0>final GetCertificateFlow flow = new GetCertificateFlow(display, api);flow.setOperationFactory(operationFactory);final GetCertificateRequest req = new GetCertificateRequest();</CONTEXT>
[DELETED]