"[0,1,44],\n" +
"[0,1,51,\"foo\"],\n" +
"]\n" +
"}\n";
SourceMapConsumerV2 sourceMap = new SourceMapConsumerV2();
sourceMap.parse(mapData);
OriginalMapping mapping = sourceMap.getMappingForLine(1, 10);
assertNotNull(mapping);
assertEquals("testcode", mapping.getOriginalFile());
assertEquals(1, mapping.getLineNumber());
assertEquals(9, mapping.getColumnPosition());
assertEquals("f", mapping.getIdentifier());
mapping = sourceMap.getMappingForLine(1, 40);
assertNotNull(mapping);
assertEquals("testcode", mapping.getOriginalFile());
assertEquals(1, mapping.getLineNumber());
assertEquals(44, mapping.getColumnPosition());
assertEquals("", mapping.getIdentifier());
mapping = sourceMap.getMappingForLine(1, 42);
assertNotNull(mapping);
assertEquals("testcode", mapping.getOriginalFile());
assertEquals(1, mapping.getLineNumber());
assertEquals(51, mapping.getColumnPosition());
assertEquals("foo", mapping.getIdentifier());
assertNull(sourceMap.getMappingForLine(Integer.MAX_VALUE, 1));
assertNull(sourceMap.getMappingForLine(1, Integer.MAX_VALUE));
}