@Test
public void prefixFileLooksSane()
throws Exception
{
// central
Status centralStatus = routing().getStatus("central");
assertThat(centralStatus.getPublishedStatus(), equalTo(Outcome.SUCCEEDED));
assertThat(centralStatus.getPublishedUrl(), is(notNullValue()));
assertThat(centralStatus.getDiscoveryStatus(), is(notNullValue()));
assertThat(centralStatus.getDiscoveryStatus().getDiscoveryLastStatus(), equalTo(Outcome.SUCCEEDED));
// let's check some sanity (just blindly check that some expected entries are present)
try (final InputStream entityStream = getPrefixFileFrom(centralStatus.getPublishedUrl());) {
final LineNumberReader lnr = new LineNumberReader(new InputStreamReader(entityStream, "UTF-8"));
boolean hasAbbot = false;
boolean hasComApple = false;
boolean hasOrgSonatype = false;
String currentLine = lnr.readLine();