OverpassQuery extends AbstractOverpassQuery { public OverpassQuery format(OutputFormat outputFormat) { builder.setting("out", outputFormat.toString().toLowerCase()); return this; } OverpassQuery();   OverpassQuery(OverpassQueryBuilder builder); OverpassQuery format(OutputFormat outputFormat); OverpassQuery timeout(int timeout); OverpassQuery boundingBox(double southernLat, double westernLon, double northernLat, double easternLon); OverpassFilterQuery filterQuery(); OverpassQuery output(int limit); OverpassQuery output(OutputVerbosity verbosity, OutputModificator modificator, OutputOrder order, int limit); @Override String build();  }
@Test public void testFormat() throws Exception { query.format(JSON); verify(builder).setting("out", "json"); }