@Test
public void startWithWrongRole() {

    // logging disabled to not print expected stacktrace; re-enable logging to debug.
    actorSystem.eventStream().setLogLevel(Attributes.logLevelOff());
    new TestKit(actorSystem) {{
        final BlockedNamespaces underTest = BlockedNamespaces.create(DistributedData.createConfig(actorSystem,
                "replicator", "wrong-role"), actorSystem);
        watch(underTest.getReplicator());
        expectTerminated(underTest.getReplicator());
    }};
}