@Test
public void testUpdate() throws Exception {
HiveSemaphoreDao hsd = new HiveSemaphoreDao(getDataSource(getConnectString(getHiveDatabaseName())));
HiveSemaphore hs = hsd.create();
hs.incrementRevision();
hsd.update(hs);
HiveSemaphore hs2 = hsd.get();
Assert.assertEquals(hs.getRevision(),hs2.getRevision());
Assert.assertEquals(hs.getStatus(),hs2.getStatus());
}