@Test(expected = InvalidInputException.class)
 public void discoverLongLinesPrefixFile() throws Exception {
   server.stop();
   server =
       Server.withPort(remoteServerPort)
           .serve("/.meta/prefixes.txt")
           .withBehaviours(Behaviours.content(prefixFile1(Strings.repeat("/12345677890", 25))))
           .start();
   try {
     final RemoteStrategy subject = lookup(RemoteStrategy.class, RemotePrefixFileStrategy.ID);
     final StrategyResult result =
         subject.discover(
             getRepositoryRegistry()
                 .getRepositoryWithFacet(PROXY_REPO_ID, MavenProxyRepository.class));
   } finally {
     server.stop();
   }
 }
 @Test(expected = InvalidInputException.class)
 public void discoverBigPrefixFile() throws Exception {
   server.stop();
   server =
       Server.withPort(remoteServerPort)
           .serve("/.meta/prefixes.txt")
           .withBehaviours(new GenerateRandomBehaviour(150 * 1024))
           .start();
   try {
     final RemoteStrategy subject = lookup(RemoteStrategy.class, RemotePrefixFileStrategy.ID);
     final StrategyResult result =
         subject.discover(
             getRepositoryRegistry()
                 .getRepositoryWithFacet(PROXY_REPO_ID, MavenProxyRepository.class));
   } finally {
     server.stop();
   }
 }
 @Test(expected = InvalidInputException.class)
 public void discoverNonAsciiButHungarianPrefixFile() throws Exception {
   server.stop();
   server =
       Server.withPort(remoteServerPort)
           .serve("/.meta/prefixes.txt")
           .withBehaviours(Behaviours.content(prefixFile1("/tamás/cservenák", "/kom/szonatájp")))
           .start();
   try {
     final RemoteStrategy subject = lookup(RemoteStrategy.class, RemotePrefixFileStrategy.ID);
     final StrategyResult result =
         subject.discover(
             getRepositoryRegistry()
                 .getRepositoryWithFacet(PROXY_REPO_ID, MavenProxyRepository.class));
   } finally {
     server.stop();
   }
 }