AbstractEntityDao extends JpaDaoSupport implements
        EntityDao<T> { @Override public T load(Integer id) { Validate.notNull(id, "Entity identifier can't be null"); return getJpaTemplate().find(clazz, id); } AbstractEntityDao(Class<T> clazz); void persist(T entity); T merge(T entity); @Override T load(Integer id); @Override void delete(T entity);  }
@Test(expected = IllegalArgumentException.class) public void load() { dao.load(null); }
@Test public void load2() { assertNull("file not null.", dao.load(Integer.MAX_VALUE)); }