@Test
public void testToIntegerWithValidValues() throws Exception {

    assertEquals(Integer.valueOf(1), new RequestParameter(null, "1").toInteger());
    assertEquals(Integer.valueOf(-1), new RequestParameter(null, "-1").toInteger());
}