@Test public void shouldUpdateExistingResource() { setupData("shouldUpdateExistingResource"); ResourcePersister persister = new DefaultResourcePersister(getSession(), mock(ResourcePermissions.class)); singleProject.setName("new name"); singleProject.setDescription("new description"); persister.saveProject(singleProject, null); checkTables( "shouldUpdateExistingResource", new String[] {"build_date", "created_at"}, "projects", "snapshots"); }