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