in component-test/src/main/java/org/apache/fineract/cn/cheque/TestMICR.java [176:188]
public void shouldNotReturnResolutionChequeNotIssued() throws Exception {
final MICR micr = Fixture.createRandomCheque().getMicr();
Mockito
.doAnswer(invocation -> {
final Office mockedOffice = new Office();
mockedOffice.setName(TestMICR.OFFICE_NAME);
return Optional.of(mockedOffice);
})
.when(this.organizationServiceSpy).findOffice(micr.getBranchSortCode());
super.chequeManager.expandMicr(MICRParser.toIdentifier(micr));
}