### Question:
InstructionList extends AbstractList<Instruction> { static String simpleXMLEscape(String str) { return str.replaceAll("&", "&amp;"). replaceAll("[\\<\\>]", "_"); } InstructionList(Translation tr);  InstructionList(int cap, Translation tr); @Override int size(); @Override Instruction get(int index); @Override Instruction set(int index, Instruction element); @Override void add(int index, Instruction element); @Override Instruction remove(int index); void replaceLast(Instruction instr); @JsonValue List<Map<String, Object>> createJson(); List<GPXEntry> createGPXList(); String createGPX(); String createGPX(String trackName, long startTimeMillis); String createGPX(String trackName, long startTimeMillis, boolean includeElevation, boolean withRoute, boolean withTrack, boolean withWayPoints); void createRteptBlock(StringBuilder output, Instruction instruction, Instruction nextI); Instruction find(double lat, double lon, double maxDistance);  }### Answer:
@Test public void testXMLEscape_issue572() { assertEquals("_", InstructionList.simpleXMLEscape("<")); assertEquals("_blup_", InstructionList.simpleXMLEscape("<blup>")); assertEquals("a&amp;b", InstructionList.simpleXMLEscape("a&b")); }