def METHOD_NAME(self, fixture, monkeypatch):
    monkeypatch.setattr(Strategy, '_system_memory_mb_java',
                        lambda x: (2000, 4000))
    p = write_config(fixture.input)
    xml = template_xml()
    config = ConfigXml(filename=str(p), env_config="default")
    try:
        rv = adjust_settings(config, xml, **fixture.kwargs)
        fixture.validate(rv)
    finally:
        config.close()