### Question:
HostJdbcDao extends JdbcDaoSupport { public Status getStatus(long hostId) { return Status.valueOf(getJdbcTemplate().queryForObject(sqlGetStatus, String.class, hostId)); }  HostAdministrationStatus getAdministrationStatus(long hostId); void setAdministrationStatus(HostAdministrationStatus hostAdministrationStatus, long hostId); StartType getStartType(long hostId); Status getStatus(long hostId); ResourceState getResourceState(long hostId); List<HypervisorType> getAllHypervisorsTypeInCloud(); boolean isThereAnyHostOnCloudDeactivatedByOurManager(); boolean isThereAnyHostOnPodDeactivatedByOurManager(long id);  }### Answer:
@Test public void getStatusTest() { Mockito.doReturn("Up").when(jdbcTemplate).queryForObject(Mockito.eq(sqlGetStatus), Mockito.eq(String.class), Mockito.eq(0l)); Status result = spy.getStatus(0l); Mockito.verify(jdbcTemplate).queryForObject(Mockito.eq(sqlGetStatus), Mockito.eq(String.class), Mockito.eq(0l)); Assert.assertEquals(Status.Up, result); }