@Test
public void testGetStringFromInput() {

    Map<String, Object> input = new HashMap<String, Object>();
    input.put("key1", "value1");
    input.put("key2", "123");
    input.put("key3", "false");
    Map<String, Object> error = new HashMap<String, Object>();
    Assert.assertEquals("value1", listener.getStringFromInput(input, "key1", error));
    Assert.assertEquals(0, error.size());
    Assert.assertEquals("123", listener.getStringFromInput(input, "key2", error));
    Assert.assertEquals(0, error.size());
    Assert.assertEquals("false", listener.getStringFromInput(input, "key3", error));
    Assert.assertEquals(0, error.size());
}