### Question:
HeaderParser { protected static int readAfterGap(byte[] header, int off, int len) { int i = readToGap(header, off, len) + len; if(i < 0) { return i; } while(i < header.length && header[i] == 0) { i++; } return i; }  static CustomHeader parse(File map); static CustomHeader parse(byte[] map); static CustomHeader parse(ByteSource source); static int findEndOfHeader(ByteSource source);  }### Answer:
@Test public void testReadAfterGap() throws Exception { int expected = 4; int actual = HeaderParser.readAfterGap(inputGap, 0, 2); assertEquals(expected, actual); }
@Test public void testReadAfterGap2() throws Exception { int expected = 9; int actual = HeaderParser.readAfterGap(inputGap, 3, 2); assertEquals(expected, actual); }