@Test(expected = IllegalArgumentException.class)
public void shouldFailForNullParameter() {

    InputStream is = null;
    StreamUtils.getStreamContents(is);
    fail("Must throw exception before getting here");
}