### Question:
OverpassBridge { protected StringBuilder buildSingleEntityQueryPart(EntityDef entity, StringBuilder sb) { sb.append(entity.getType()); sb.append("[\""); sb.append(escapeOverpassQuery(entity.key)); sb.append('"'); if(!entity.allowsAnyValue()) { if(entity.hasRegexValue()) { sb.append('~'); } else { sb.append('='); } sb.append('"'); sb.append(escapeOverpassQuery(entity.getValue())); sb.append('"'); } sb.append(']'); sb.append(bounds.getStringOverpassBounds()); sb.append(';'); return sb; } OverpassBridge(Config conf);  OverpassBridge(Area bounds, OsmDef osm); File getResult(); String buildOverpassQuery();  }### Answer:
@Test public void testBuildSingleEntityQueryPart() { OverpassBridge ob = new OverpassBridge(c); EntityDef entity = ((OsmDef) c.getTextureTrans()).entities.get(0); StringBuilder sb = new StringBuilder(); ob.buildSingleEntityQueryPart(entity, sb); String expected = "way[\"landuse\"~\"forest|wood\"](48.39650842,11.73723469,48.40549158,11.75076531);"; String actual = sb.toString(); assertEquals(expected, actual); }