### Question:
SingleParams { public final Boolean getBoolean(String name) { return getAndTranslateValue(name, "boolean", BOOLEAN, null); }  abstract String getString(String name); abstract Set<String> keys(); final String getString(String name, String defaultValue); final Short getShort(String name); final short getShort(String name, short defaultValue); final Integer getInt(String name); final int getInt(String name, int defaultValue); final Long getLong(String name); final long getLong(String name, long defaultValue); final Float getFloat(String name); final float getFloat(String name, float defaultValue); final Double getDouble(String name); final double getDouble(String name, double defaultValue); final Boolean getBoolean(String name); final boolean getBoolean(String name, boolean defaultValue);  }### Answer:
@Test public void testGetBoolean() { assertThat(params("a", "true").getBoolean("a"), is(true)); assertThat(params("a", "true").getBoolean("b"), nullValue()); assertThat(params("a", "true").getBoolean("b", false), is(false)); }