@Test
public void testWhenNotMetadataAwareShouldNotSynchronize() {

    when(metadataService.getAllBuckets()).thenReturn(Collections.emptyList());
    synchronizer = new FlowMetadataSynchronizer(metadataService, standardFlowPersistenceProvider);
    synchronizer.synchronize();
    verify(metadataService, times(0)).createBucket(any(BucketEntity.class));
    verify(metadataService, times(0)).createFlow(any(FlowEntity.class));
    verify(metadataService, times(0)).createFlowSnapshot(any(FlowSnapshotEntity.class));
}