Server.withPort(remoteServerPort).serve("/.meta/prefixes.txt").withBehaviours(
Behaviours.content(TextFilePrefixSourceMarshaller.MAGIC + "\n# Just a comment")).start();
try {
final RemoteStrategy subject = lookup(RemoteStrategy.class, RemotePrefixFileStrategy.ID);
final StrategyResult result =
subject.discover(getRepositoryRegistry().getRepositoryWithFacet(PROXY_REPO_ID,
MavenProxyRepository.class));
assertThat(result.getMessage(), containsString("empty prefix file"));
assertThat(result.getPrefixSource(), notNullValue());
assertThat(result.getPrefixSource().supported(), is(false));
}