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

	Bill bill = createEntity(true);
	bill.setReceiptNumber(null);
	when(receiptNumberGenerator.generateNumber(bill))
	        .thenThrow(new APIException("Test exception"));
	service.save(bill);
}