### Question:
TemplatedPayloadGenerator implements PayloadGenerator, Configurable { @Override public Map<String, Object> getOffsets() { return valueProvider.getParameters(); }  @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 testGetOffsets() { System.setProperty("STAR_NAME", "Vega"); System.setProperty("PRIORITY", "MINIMUM"); System.setProperty("PAGED", "TRUE"); System.setProperty("CONTENT_TYPE", "text/plain"); System.setProperty("ACCEPT_TYPE", "text/plain"); generator.configure(CONFIG_PROPS); assertThat(generator.getOffsets(), allOf( hasEntry("STAR_NAME", "Vega"), hasEntry("PRIORITY", "MINIMUM"), hasEntry("PAGED", "TRUE"), hasEntry("CONTENT_TYPE", "text/plain"), hasEntry("ACCEPT_TYPE", "text/plain"))); }