### Question:
TemplatedPayloadGenerator implements PayloadGenerator, Configurable { @Override public String getRequestBody() { return requestBodyValue; }  @Override void configure(Map<String, ?> props); @Override boolean update(Request request, Response response); @Override String getRequestBody(); @Override Map<String, String> getRequestParameters(); @Override Map<String, String> getRequestHeaders(); @Override Map<String, Object> getOffsets(); @Override void setOffsets(Map<String, Object> offsets);  }### Answer:
@Test public void testGetRequestBody() { System.setProperty("STAR_NAME", "Sol"); generator.configure(CONFIG_PROPS); assertThat(generator.getRequestBody(), Matchers.equalTo("{\"query\": \"select * from known_stars where name='Sol'\"")); }