}
@Test
public void proxyMode() {
final String id = repositoryIdForTest();
final MavenProxyRepository repository = repositories().create(MavenProxyRepository.class, id)
.asProxyOf("http://localhost:8080")
.doNotAutoBlock();
assertThat(repository.status().isBlocked(), is(false));
assertThat(repository.status().isAutoBlocked(), is(false));
repository.save();
assertThat(repository.status().isBlocked(), is(false));
assertThat(repository.status().isAutoBlocked(), is(false));
repository.block();
assertThat(repository.status().isBlocked(), is(true));
assertThat(repository.status().isAutoBlocked(), is(false));
repository.unblock();
assertThat(repository.status().isBlocked(), is(false));
assertThat(repository.status().isAutoBlocked(), is(false));
}