@Test
public void testGetFlowMetadataWhenExists() {

    final Optional<FDFlowMetadata> flowMetadataOptional = flowManager.getFlowMetadata("2");
    assertTrue(flowMetadataOptional.isPresent());
    final FDFlowMetadata flowMetadata = flowMetadataOptional.get();
    assertEquals("2", flowMetadata.getIdentifier());
    assertEquals("Class 2", flowMetadata.getAgentClass());
    assertNotNull(flowMetadata.getCreated());
    assertNotNull(flowMetadata.getUpdated());
}