private static void checkTwoWay(SourcePositionMap map,
String fromFile, int fromLine, int fromColumn,
String toFile, int toLine, int toColumn, TranslateDirection direction) {
checkOneWay(map, fromFile, fromLine, fromColumn, toFile, toLine, toColumn, direction);
SourcePosition result = map.translatePosition(new VmResourceId(toFile, null), toLine, toColumn,
direction.opposite());
Assert.assertEquals(new SourcePosition(new VmResourceId(fromFile, null), fromLine, fromColumn),
result);
}