### Question:
PrepareRoutingSubnetworks { boolean detectNodeRemovedForAllEncoders(EdgeExplorer edgeExplorerAllEdges, int nodeIndex) { EdgeIterator iter = edgeExplorerAllEdges.setBaseNode(nodeIndex); while (iter.next()) { for (BooleanEncodedValue accessEnc : accessEncList) { if (iter.get(accessEnc) || iter.getReverse(accessEnc)) return false; } } return true; } PrepareRoutingSubnetworks(GraphHopperStorage ghStorage, List<FlagEncoder> encoders); PrepareRoutingSubnetworks setMinNetworkSize(int minNetworkSize); PrepareRoutingSubnetworks setMinOneWayNetworkSize(int minOnewayNetworkSize); void doWork(); int getMaxSubnetworks();  }### Answer:
@Test public void testRemoveNode() { FlagEncoder carEncoder = new CarFlagEncoder(); BikeFlagEncoder bikeEncoder = new BikeFlagEncoder(); EncodingManager em2 = EncodingManager.create(carEncoder, bikeEncoder); GraphHopperStorage g = createSubnetworkTestStorage2(em2); PrepareRoutingSubnetworks instance = new PrepareRoutingSubnetworks(g, em2.fetchEdgeEncoders()); EdgeExplorer edgeExplorer = g.createEdgeExplorer(); assertFalse(instance.detectNodeRemovedForAllEncoders(edgeExplorer, 4)); assertFalse(instance.detectNodeRemovedForAllEncoders(edgeExplorer, 5)); assertFalse(instance.detectNodeRemovedForAllEncoders(edgeExplorer, 6)); for (EdgeIteratorState edge : Arrays.asList(GHUtility.getEdge(g, 5, 6), GHUtility.getEdge(g, 4, 5), GHUtility.getEdge(g, 4, 6))) { for (FlagEncoder encoder : em2.fetchEdgeEncoders()) { edge.set(encoder.getAccessEnc(), false).setReverse(encoder.getAccessEnc(), false); } } assertTrue(instance.detectNodeRemovedForAllEncoders(edgeExplorer, 4)); assertTrue(instance.detectNodeRemovedForAllEncoders(edgeExplorer, 5)); assertTrue(instance.detectNodeRemovedForAllEncoders(edgeExplorer, 6)); }