@Test
public void satisfiedWhenRepositoryIsNotBlockingAnymore() {
assertThat(underTest.isSatisfied(), is(true));
when(repository.getProxyMode()).thenReturn(ProxyMode.BLOCKED_AUTO);
underTest.handle(new RepositoryEventProxyModeChanged(
repository, ProxyMode.ALLOW, ProxyMode.BLOCKED_AUTO, null
));
when(repository.getProxyMode()).thenReturn(ProxyMode.ALLOW);
underTest.handle(new RepositoryEventProxyModeChanged(
repository, ProxyMode.BLOCKED_AUTO, ProxyMode.ALLOW, null
));
assertThat(underTest.isSatisfied(), is(true));
verifyEventBusEvents(satisfied(underTest), unsatisfied(underTest), satisfied(underTest));