@Test
public void testFromDefinedToDefinedOutOfRange() {

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