@Test
public void getGenerator_shouldReturnNullIfNoGeneratorHasBeenDefined() throws Exception {

	when(administrationService.getGlobalProperty(ModuleSettings.SYSTEM_RECEIPT_NUMBER_GENERATOR))
	        .thenReturn(null);
	IReceiptNumberGenerator generator = ReceiptNumberGeneratorFactory.getGenerator();
	Assert.assertNull(generator);
}