@Test
public void testRequireEitherNodeNameOrNodeId() {

    ActivePeer node = ActivePeer.asNodeWithName("node-1", "1.1.1.1", null);
    Config config = createActivePeersConfig(node);
    SystemProperties props = new SystemProperties();
    try {
        props.overrideParams(config);
        fail("Should require either nodeName or nodeId");
    } catch (RuntimeException ignore) { }
}