@Test
public void exceptionWhenAccessingNonexistentColumn() throws SQLException {

    DBEnvironment env = mock(DBEnvironment.class);
    when(env.getAllColumns("mytable")).thenReturn(columns("some_column"));
    expectedEx.expect(RuntimeException.class);
    expectedEx.expectMessage("No such database column or parameter: 'nonexistent_column'");
    new DbTable(env, "mytable").getDbParameterAccessor("nonexistent_column", INPUT);
}