### Question:
TLD { public static ByteSequence parsePointerFromFI(ByteSequence cq) { ArrayList<Integer> nulls = lastInstancesOf(0, cq, 2); final int start = nulls.get(1) + 1, stop = cq.length(); return cq.subSequence(start, stop); } private  TLD(); static ByteSequence parsePointerFromFI(ByteSequence cq); static ByteSequence parseParentPointerFromId(ByteSequence id); static ByteSequence parseFieldAndValueFromFI(ByteSequence cf, ByteSequence cq); static ByteSequence parseFieldAndValueFromTF(ByteSequence cq); static ByteSequence parseRootPointerFromFI(ByteSequence cq); static ByteSequence parseRootPointerFromId(ByteSequence id); static String parseRootPointerFromId(String id); static ByteSequence estimateRootPointerFromId(ByteSequence id); static boolean isRootPointer(ByteSequence id); static ByteSequence fromString(String s); static ArrayList<Integer> instancesOf(int b, ByteSequence sequence); static ArrayList<Integer> instancesOf(int b, ByteSequence sequence, int repeat); static ArrayList<Integer> lastInstancesOf(int b, ByteSequence sequence, int repeat); static Key buildParentKey(Text shard, ByteSequence id, ByteSequence cq, Text cv, long ts); static Key getNextParentKey(Key docKey);  }### Answer:
@Test public void testParsePointerFromFI() { Key fiKey = buildFiKey(rootId); ByteSequence parsed = TLD.parsePointerFromFI(fiKey.getColumnQualifierData()); ByteSequence expected = new ArrayByteSequence(datatype + '\u0000' + rootId); assertEquals(expected, parsed); fiKey = buildFiKey(childId); parsed = TLD.parsePointerFromFI(fiKey.getColumnQualifierData()); expected = new ArrayByteSequence(datatype + '\u0000' + childId); assertEquals(expected, parsed); fiKey = buildFiKey(grandchildId); parsed = TLD.parsePointerFromFI(fiKey.getColumnQualifierData()); expected = new ArrayByteSequence(datatype + '\u0000' + grandchildId); assertEquals(expected, parsed); }