@Test(expected = APIException.class)
public void getGenerator_shouldThrowAPIExceptionIfGeneratorClassCannotBeFound() throws Exception {

	when(administrationService.getGlobalProperty(ModuleSettings.SYSTEM_RECEIPT_NUMBER_GENERATOR))
	        .thenReturn("org.openmrs.module.openhmis.cashier.NotAValidClass");
	ReceiptNumberGeneratorFactory.getGenerator();
}