host.handleEvent(e);
Assert.assertEquals(currentTime, host.getLastRegistrationTime());
Assert.assertNotNull(host.getLastAgentEnv());
HostEntity entity = hostDAO.findByName(host.getHostName());
Assert.assertEquals(currentTime,
entity.getLastRegistrationTime().longValue());
Assert.assertEquals("os_arch", entity.getOsArch());
Assert.assertEquals("os_type", entity.getOsType());
Assert.assertEquals(10, entity.getTotalMem().longValue());
}