in component-test/src/main/java/org/apache/fineract/cn/teller/TestTellerDenomination.java [196:213]
public void shouldNotProcessDenominationIsActive() throws Exception {
final String officeIdentifier = RandomStringUtils.randomAlphabetic(32);
final BigDecimal openingAmount = BigDecimal.valueOf(20000.00D);
final Teller teller = this.prepareTeller(officeIdentifier, openingAmount);
final TellerDenomination tellerDenomination = new TellerDenomination();
tellerDenomination.setCountedTotal(openingAmount.subtract(BigDecimal.valueOf(1000.00D)));
try {
super.testSubject.saveTellerDenomination(officeIdentifier, teller.getCode(), tellerDenomination);
Assert.fail();
} catch (final TellerValidationException tvex) {
// do nothing ... expected
}
this.closeTeller(officeIdentifier, teller.getCode());
}