@Test
public void testGetLatestSnapshot() {

    final FlowSnapshotEntity latest = metadataService.getLatestSnapshot("1");
    assertNotNull(latest);
    assertEquals("1", latest.getFlowId());
    assertEquals(3, latest.getVersion().intValue());
}