@Test
public void testUpdateFlow() throws Exception {

  final Flow flow1 = new Flow("flow1");
  final List<Flow> flowList = Collections.singletonList(flow1);
  flow1.setLayedOut(false);
  createThreeProjects();
  final Project project = this.loader.fetchProjectByName("mytestProject");
  this.loader.uploadFlows(project, project.getVersion(), flowList);
  flow1.setLayedOut(true);
  this.loader.updateFlow(project, project.getVersion(), flow1);
  final List<Flow> flows = this.loader.fetchAllProjectFlows(project);
  Assert.assertEquals(flows.get(0).isLayedOut(), true);
}