@Test(expected = ResourceNotFoundException.class)
public void testGetSnapshotDoesNotExistInMetadataProvider() {

    final String bucketId = "b1";
    final String flowId = "flow1";
    final Integer version = 1;
    when(metadataService.getFlowSnapshot(flowId, version)).thenReturn(null);
    registryService.getFlowSnapshot(bucketId, flowId, version);
}