### Question:
WccProc { static <CONFIG extends WccBaseConfig> AlgorithmFactory<Wcc, CONFIG> algorithmFactory() { return new WccFactory<>(); } private  WccProc();   }### Answer:
@Test void testLogWarningForRelationshipWeightPropertyWithoutThreshold() { CypherMapWrapper userInput = createMinimalConfig(CypherMapWrapper.create(anonymousGraphConfig( MapUtil.map("relationshipWeightProperty", "cost") ))); var testLog = new TestLog(); var graph = fromGdl("(a)"); applyOnProcedure(proc -> { WccBaseConfig config = proc.newConfig(Optional.empty(), userInput); WccProc.algorithmFactory().build(graph, config, AllocationTracker.empty(), testLog); }); String expected = "Specifying a `relationshipWeightProperty` has no effect unless `threshold` is also set."; String actual = testLog.getMessages("warn").get(0); assertEquals(expected, actual); }