@Test
public void testGetHealthStatus() throws Exception {

  HostEntity hostEntity = createNiceMock(HostEntity.class);
  HostStateEntity hostStateEntity = createNiceMock(HostStateEntity.class);
  HostDAO hostDAO  = createNiceMock(HostDAO.class);
  HostStateDAO hostStateDAO  = createNiceMock(HostStateDAO.class);
  Gson gson = new Gson();
  expect(hostEntity.getHostAttributes()).andReturn("{\"foo\": \"aaa\", \"bar\":\"bbb\"}").anyTimes();
  expect(hostEntity.getHostName()).andReturn("host1").anyTimes();
  expect(hostEntity.getHostId()).andReturn(1L).anyTimes();
  expect(hostEntity.getHostStateEntity()).andReturn(hostStateEntity).anyTimes();
  expect(hostDAO.findById(1L)).andReturn(hostEntity).anyTimes();
  expect(hostStateDAO.findByHostId(1L)).andReturn(hostStateEntity).atLeastOnce();
  replayAll();
  HostImpl host = new HostImpl(hostEntity, gson, hostDAO, hostStateDAO);
  host.getHealthStatus();
  host = new HostImpl(hostEntity, gson, hostDAO, hostStateDAO);
  host.getHealthStatus();
  verifyAll();
}