  @Test
  public void duplicateRegister()
  {

    final ReplicantRuntime runtime1 = Replicant.context().getRuntime();

    final SystemSchema schema = newSchema();

    // This connector will self-register to runtime1
    final Connector connector1 = createConnector( schema );

    final IllegalStateException exception =
      expectThrows( IllegalStateException.class,
                    () -> runtime1.registerConnector( connector1 ) );

    assertEquals( exception.getMessage(),
                  "Replicant-0015: Invoked registerConnector for system schema named '" +
                  schema.getName() + "' but a Connector for specified schema exists." );
  }