### Question:
ConfigurationUpdaterImpl implements ConfigurationUpdater { @Override public void shareConfiguration(String configuration) { try { WebClient client = factory.createClient().withUrl(repeaterUrl); client.doPutRequest(new Gson().toJson(createUpdate(configuration))); } catch (IOException | WebClientException e) { errorLog.log(e); } } ConfigurationUpdaterImpl(QuerySyncConfiguration syncConfiguration, ErrorLog errorLog);   ConfigurationUpdaterImpl(Clock clock, WebClientFactory factory); @Override long getLatestConfigurationTimestamp(); @Override void shareConfiguration(String configuration); @Override ConfigurationUpdate getUpdate();  }### Answer:
@Test public void onShareConfiguration_sendsConfigurationInJsonObject() { impl.shareConfiguration(CONFIGURATION_1); assertThat(factory.getPostedString(), hasJsonPath("$.configuration").withValue(CONFIGURATION_1)); }
@Test public void onShareConfiguration_sendsTimestampInJsonObject() { clock.setCurrentMsec(23); impl.shareConfiguration(CONFIGURATION_1); assertThat(factory.getPostedString(), hasJsonPath("$.timestamp").withValue(23)); }