@Test
public void remoteBrowsingNotAllowed() {
// disable browsing on remote/central
final MavenHostedRepository remoteRepository = remoteRepositories().get(MavenHostedRepository.class,
REMOTE_REPOSITORY_ID);
remoteRepository.disableBrowsing().save();
// create local/central proxying remote/central
final MavenProxyRepository localRepository = localRepositories()
.create(MavenProxyRepository.class, LOCAL_REPOSITORY_ID).asProxyOf(remoteRepository.contentUri())
.doNotDownloadRemoteIndexes().withRepoPolicy("RELEASE").save();