@Test
public void testUpdateFlow() {

    final FlowEntity flow = metadataService.getFlowById("1");
    assertNotNull(flow);
    final Date originalModified = flow.getModified();
    flow.setName(flow.getName() + " UPDATED");
    flow.setDescription(flow.getDescription() + " UPDATED");
    metadataService.updateFlow(flow);
    final FlowEntity updatedFlow = metadataService.getFlowById( "1");
    assertNotNull(flow);
    assertEquals(flow.getName(), updatedFlow.getName());
    assertEquals(flow.getDescription(), updatedFlow.getDescription());
    assertEquals(flow.getModified().getTime(), updatedFlow.getModified().getTime());
    assertTrue(updatedFlow.getModified().getTime() > originalModified.getTime());
}