}
@Test(expected = ValidationException.class)
@Transactional
public void saveAdvanceAssignmentWithNegativeNumberAsMaxValue() {
AdvanceAssignment advance = DirectAdvanceAssignment.create(false,
BigDecimal.valueOf(-10));
advance.setAdvanceType(givenAdvanceType());
advanceAssignmentDAO.save(advance);
assertTrue(advance.getId() != null);
}