@Test
public void testGenerate() throws Exception {

    DefaultRouter router = new DefaultRouter();
    for (Route route : getRoutes()) {
        router.addRoute(route);
    }
    SwaggerBuilder sb = new SwaggerBuilder(settings, router);
    String json = sb.generateJSON(router.getRoutes());
    assertNotNull(json);
}