public void assertSelect(List<String> expected) {
        if (expected == null) {
            assertEquals(0, select(0).size());
        } else {
            List<RoutingNode> selected = select(expected.size());
            for (RoutingNode node : selected) {
                assertTrue("Route '" + node.getRoute() + "' not selected.",
                           expected.contains(node.getRoute().toString()));
                node.handleReply(new EmptyReply());
            }
        }
        assertNotNull(handler.getReply(60));
    }
Ensures that the current setup selects a given set of routes.

@param expected A list of expected route leaf nodes.
documentapi/src/test/java/com/yahoo/documentapi/messagebus/protocol/test/PolicyTestFrame.java