@Test
public void getGenerator_shouldLoadTheGeneratorIfItHasNotBeenLoaded() throws Exception {

	when(administrationService.getGlobalProperty(ModuleSettings.SYSTEM_RECEIPT_NUMBER_GENERATOR))
	        .thenReturn(TestReceiptNumberGenerator.class.getName());
	TestReceiptNumberGenerator generator = (TestReceiptNumberGenerator)ReceiptNumberGeneratorFactory.getGenerator();
	Assert.assertNotNull(generator);
	Assert.assertEquals(true, generator.isLoaded());
	Assert.assertEquals(1, generator.getLoadedCount());
}