@Test
    public final void testParseBoolean() {
        boolean gotException = false;
        try {
            BooleanParser.parseBoolean(null);
        } catch (final NullPointerException e) {
            gotException = true;
        }
        assertTrue(gotException);
        gotException = false;
        try {
            BooleanParser.parseBoolean("nalle");
        } catch (final IllegalArgumentException e) {
            gotException = true;
        }
        assertTrue(BooleanParser.parseBoolean("true"));
        assertFalse(BooleanParser.parseBoolean("false"));
    }
Control argument checking in BooleanParser.

@author <a href="mailto:steinar@yahoo-inc.com">Steinar Knutsen</a>
vespajlib/src/test/java/com/yahoo/text/BooleanParserTestCase.java