@Test
public void getOptions_shouldLogErrorIfRoundingItemIdCannotBeParsed() throws Exception {

	when(adminService.getGlobalProperty(ModuleSettings.RECEIPT_REPORT_ID_PROPERTY))
	        .thenReturn(null);
	when(adminService.getGlobalProperty(ModuleSettings.ROUNDING_MODE_PROPERTY))
	        .thenReturn(CashierOptions.RoundingMode.FLOOR.toString());
	when(adminService.getGlobalProperty(ModuleSettings.ROUND_TO_NEAREST_PROPERTY))
	        .thenReturn("5");
	when(adminService.getGlobalProperty(ModuleSettings.ROUNDING_ITEM_ID))
	        .thenReturn("HELP");
	Logger logger = Logger.getLogger(CashierOptionsServiceGpImpl.class);
	ByteArrayOutputStream out = new ByteArrayOutputStream();
	Layout layout = new SimpleLayout();
	Appender appender = new WriterAppender(layout, out);
	logger.addAppender(appender);
	try {
		optionsService.getOptions();
		String logMsg = out.toString();
		assertNotNull(logMsg);
		assertFalse((logMsg.trim()).equals(""));
	} finally {
		logger.removeAppender(appender);
	}
}