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