@Test
public void testFromUndefinedToDefinedButTooSmall() {

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