replaceTest(8080, 8005, 8009, 1111, 2222, 3333);
}
private void replaceTest(int http1, int stop1, int ajp1, int http2, int stop2, int ajp2) throws IOException {
final File target = write("target/setup1.xml", serverXml(http1, stop1, ajp1));
Setup.replace(new PropertiesBuilder()
.p(Integer.toString(http1), Integer.toString(http2))
.p(Integer.toString(stop1), Integer.toString(stop2))
.p(Integer.toString(ajp1), Integer.toString(ajp2))
.asMap(), target, true);
assertEquals(serverXml(http2, stop2, ajp2), IO.slurp(target));