@Test
void detectsUpdates() {

    final Zonky z = harmlessZonky();
    when(z.getLastPublishedParticipationInfo()).thenReturn(mock(LastPublishedItemImpl.class));
    final PowerTenant t = mockTenant(z);
    final AtomicReference<LastPublishedItem> state = new AtomicReference<>(null);
    final AbstractMarketplaceAccessor<ParticipationDescriptor> a = new SecondaryMarketplaceAccessor(t,
            state::getAndSet);
    assertThat(a.hasUpdates()).isTrue(); // detect update, store present state
    assertThat(a.hasUpdates()).isFalse(); // state stays the same, no update
}