@Test
void setToken() {

    final SecretProvider p = newProvider(USR, PWD);
    // make sure original values were set
    assertThat(p.getToken()).isEmpty();
    final ZonkyApiToken token = new ZonkyApiTokenImpl(UUID.randomUUID()
        .toString(),
            UUID.randomUUID()
                .toString(),
            299);
    assertThat(p.setToken(token)).isTrue();
    assertThat(p.getToken()).contains(token);
    assertThat(p.setToken(null)).isTrue();
    assertThat(p.getToken()).isEmpty();
}