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

	when(administrationService.getGlobalProperty(ModuleSettings.SYSTEM_RECEIPT_NUMBER_GENERATOR))
	        .thenReturn(InvalidReceiptNumberGenerator.class.getName());
	ReceiptNumberGeneratorFactory.getGenerator();
}