@Test
void notClosingWhenExpired() {

    final Zonky zonky = mock(Zonky.class);
    final OAuth oAuth = mock(OAuth.class);
    final ZonkyApiToken token = getTokenExpiringIn(Duration.ZERO);
    when(oAuth.refresh(any())).thenAnswer(invocation -> token);
    final ApiProvider api = mockApi(oAuth, zonky);
    final ZonkyApiTokenSupplier t = new ZonkyApiTokenSupplier(api, secrets);
    t.close();
}