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