@Test
public void testExceptionType() {

    Person p = new Person();
    p.setPeopleID(1);
    List<Person> pl = new ArrayList<>();
    pl.add(p);
    pl.add(p);
    try {
        dao.insert(pl, hints().insertWithId());
        fail();
    }catch (Exception e) {
        assertTrue(e instanceof SQLException);
    }
}