@Test public void testUpdate() { // use the power of immutable stuff final String newTitle = "Data Feed Updated"; final String updatePipeId = "90f197cb-a225-4cd4-b9ab-964bd79e9337"; log.info("Test Update Data ================================="); Pipe pipe = pipeDao.getById(updatePipeId); pipe.setTitle(newTitle); pipeDao.save(pipe); Pipe updatedPipe = pipeDao.getById(updatePipeId); assertEquals(newTitle, updatedPipe.getTitle()); }