better yet use
    @Test(expected = MalformedHeaderValueException.class)