ConfigureDatabaseDao extends JdbcDaoSupport { protected boolean hasClusterLastConsolidatedColumn() { return !getJdbcTemplate().queryForList(sqlHasClusterLastAdministrationColumn).isEmpty(); }    }
@Test public void hasClusterLastConsolidatedColumnTest() { Mockito.doReturn(createListOfMaps()).when(jdbcTemplate).queryForList(Mockito.eq(sqlHasClusterLastAdministrationColumn)); boolean result = spy.hasClusterLastConsolidatedColumn(); verifyHasDbConfiguration(sqlHasClusterLastAdministrationColumn, true, result); }
@Test public void hasClusterLastConsolidatedColumnTestEmpty() { Mockito.doReturn(new ArrayList<Map<String, Long>>()).when(jdbcTemplate).queryForList(Mockito.eq(sqlHasClusterLastAdministrationColumn)); boolean result = spy.hasClusterLastConsolidatedColumn(); verifyHasDbConfiguration(sqlHasClusterLastAdministrationColumn, false, result); }