@Test(expected = ConstraintViolationException.class)
public void testCreateSnapshotInvalidFlowContents() {

    final VersionedFlowSnapshot snapshot = createSnapshot();
    snapshot.setFlowContents(null);
    registryService.createFlowSnapshot(snapshot);
}