in component-test/src/main/java/org/apache/fineract/cn/office/TestOffice.java [73:89]
public void shouldUpdateOffice() throws Exception {
final Office office = OfficeFactory.createRandomOffice();
this.organizationManager.createOffice(office);
this.eventRecorder.wait(EventConstants.OPERATION_POST_OFFICE, office.getIdentifier());
final String modifiedOfficeName = RandomStringUtils.randomAlphanumeric(32);
office.setName(modifiedOfficeName);
this.organizationManager.updateOffice(office.getIdentifier(), office);
this.eventRecorder.wait(EventConstants.OPERATION_PUT_OFFICE, office.getIdentifier());
final Office changedOffice = this.organizationManager.findOfficeByIdentifier(office.getIdentifier());
Assert.assertEquals(modifiedOfficeName, changedOffice.getName());
this.organizationManager.deleteOffice(office.getIdentifier());
this.eventRecorder.wait(EventConstants.OPERATION_DELETE_OFFICE, office.getIdentifier());
}