public Set<Route> getRoutes() {
        ImmutableSet.Builder<Route> routes = ImmutableSet.builder();
        array.forEach(route -> {
            try {
                IpPrefix prefix = IpPrefix.valueOf(route.path(PREFIX).asText());
                IpAddress nextHop = IpAddress.valueOf(route.path(NEXTHOP).asText());
                routes.add(new Route(Route.Source.STATIC, prefix, nextHop));
            } catch (IllegalArgumentException e) {
                // Ignores routes that cannot be parsed correctly
            }
        });
        return routes.build();
    }
@Test
    public void getRoutes() throws Exception {
        assertThat(config.getRoutes(), is(EXPECTED_ROUTES));
        assertThat(config.getRoutes(), not(UNEXPECTED_ROUTES));
    }