@Test
public void testFromDefinedToUndefined() {

    Element params = new Element("request");
    params.addContent(new Element("from").setText("42"));
    boolean ret = (boolean) ReflectionUtils.invokeMethod(setSafeBoundaries, xs, params);
    assertTrue("expected modified passed params", ret);
    assertTrue(params.getChild("from").getText().equals("42"));
    assertTrue(params.getChild("to").getText().equals(Integer.toString(42 + xs.getMaxRecordValue() - 1)));
}