public static InputStream getNoticeStream() {
        InputStream res = FileUtils.getInputStreamForClasspathFile(NOTICE_RESOURCE);
        assert res != null;
        return res;
    }
@Test
    public void getNoticeStreamTest() throws IOException {
        Set<String> expectedStrings = Sets.newHashSet(
                        "Florian Schmaus"
                      , "Paul Schaub"
        );
        int maxLineLength = 0;

        try (InputStream inputStream = Smack.getNoticeStream()) {
            BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8));

            while (reader.ready()) {
                String line = reader.readLine();

                int lineLength = line.length();
                maxLineLength = Math.max(maxLineLength, lineLength);

                expectedStrings.removeIf(s -> s.equals(line));
            }
        }

        assertTrue(expectedStrings.isEmpty());
        assertTrue(maxLineLength < 60);
    }