    @Test
    public void removingC() {

        int initial = swagger.getDefinitions().size();

        Map<String, Path> paths = swagger.getPaths().entrySet().stream()
                .filter(p -> !p.getKey().startsWith("/c")).collect(toMap());
        swagger.setPaths(paths);

        new RemoveUnusedDefinitions().accept(swagger);
        assertEquals(initial - 2, swagger.getDefinitions().size());
    }