@Test
public void testGetFlowsByNameByBucket() {

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