@Test
public void testRemoveDeadEndUnvisitedNetworks()
{

    GraphHopperStorage g = createDeadEndUnvisitedNetworkStorage(em);
    assertEquals(11, g.getNodes());
    PrepareRoutingSubnetworks instance = new PrepareRoutingSubnetworks(g, Collections.singleton(carFlagEncoder)).
            setMinOneWayNetworkSize(3);
    int removed = instance.removeDeadEndUnvisitedNetworks(new PrepEdgeFilter(carFlagEncoder));
    assertEquals(3, removed);
    instance.markNodesRemovedIfUnreachable();
    g.optimize();
    assertEquals(8, g.getNodes());
}