@Test
public void testSanitizerOption() throws Exception {

    Root root = new Root(
            "root1",
            new Child("child1", 20, 1),
            new NullableChild("child2")
    );
    Root sanitized = apply(root);
    // Check that min/max order has been fixed
    Child child = sanitized.getChild();
    assertThat(child.getChildName()).isEqualTo("child1");
    assertThat(child.getMin()).isEqualTo(20);
    assertThat(child.getMax()).isEqualTo(20);
}