public class HostDAOTest extends AbstractSpringTest {
@Test
public void test_create() {
HostBuilder builder = new HostBuilder();
Host host = builder.build();
hostDAO.upsert(host);
Host result = hostDAO.findByHostName("hostname");
assertEquals(host.isEnabled(), result.isEnabled());
assertEquals(host.getDescription(), result.getDescription());
assertEquals(host.getHostname(), result.getHostname());
}