@Test
public void testGetFlowsByName() {

    final List<FlowEntity> flows = metadataService.getFlowsByName("Flow 1");
    assertNotNull(flows);
    assertEquals(2, flows.size());
    assertEquals("Flow 1", flows.get(0).getName());
    assertEquals("Flow 1", flows.get(1).getName());
}