@Test
public void shouldThrowExceptionWhenConvertingSqlDateToLocalTime() {

    java.sql.Date date = new java.sql.Date(1);
    try {
        Conversions.toLocalTime(date);
        fail("Should not accept java.sql.Date values");
    }
    catch (IllegalArgumentException e) {
        // expected
    }
}