### Question:
SingleParams { public final Integer getInt(String name) { return getAndTranslateValue(name, "int", INT, 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 testGetInteger() { assertThat(params("a", "1").getInt("a"), equalTo(1)); assertThat(params("a", "1").getInt("b"), nullValue()); assertThat(params("a", "1").getInt("b", 2), equalTo(2)); }