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

    final VersionedFlow versionedFlow = new VersionedFlow();
    registryService.createFlow("b1", versionedFlow);
}