### Question:
RestV1Uploader extends AbstractRestUploader { protected String getSecret() { return secret; } RestV1Uploader(NightscoutPreferences preferences, URI uri);   }### Answer:
@Test public void testInitialize_GenerateToken() { RestV1Uploader uploader = new RestV1Uploader(preferences, URI.create("http: assertThat(uploader.getSecret(), is(not(nullValue()))); assertThat(uploader.getSecret(), is("b0212be2cc6081fba3e0b6f3dc6e0109d6f7b4cb")); }