Code example for String

0
        MessageParser pars = parseMessage(null); 
    } 
 
    @Test(expected = IllegalArgumentException.class) 
    public void testEmptyInput() { 
        MessageParser pars = parseMessage(new String()); 
    } 
} 
 
Contextual code suggestions in your IDE  Get Codota for Java