}
@Test
public void testUpdate() {
int count = getHive().getNodes().size();
NodeDao dao = new NodeDao(getDataSource(getConnectString(getHiveDatabaseName())));
assertEquals(count, dao.loadAll().size());
Node full = createFullyPopulatedNode();
Node minimal = createMinimalNode();
dao.create(full);
dao.create(minimal);
full.setDatabaseName("notBlahDatabase");
minimal.setUsername("minimus");
minimal.setPassword("maximus");
dao.update(full);
dao.update(minimal);
List<Node> nodes = dao.loadAll();
assertEquals(2 + count, nodes.size());
Node fetchedFull = null;
Node fetchedMinimal = null;