public class TestResourcePersistence extends HiveTest {
@Test
public void testCreate() throws Exception {
ResourceDao d = new ResourceDao(getDataSource(getConnectString(getHiveDatabaseName())));
int intitialSize = d.loadAll().size();
d.create(createResource());
assertEquals(intitialSize+1,d.loadAll().size());
}
}