@Test
public void testReadInArray() throws IOException, IllegalCeosFormatException {

    final String prefix = "vspdfoperilfdkposnsern";
    _ios.writeBytes(prefix);
    _ios.writeBytes("123"); // 0
    _ios.writeBytes(" 45"); // 1
    _ios.writeBytes("  6"); // 2
    _ios.writeBytes(" 46"); // 3
    _ios.writeBytes(" 7 "); // 4
    _ios.writeBytes("234"); // 5
    _ios.writeBytes("suffix");
    final CeosFileReader ceosReader = new CeosFileReader(_ios);
    ceosReader.seek(prefix.length());
    final int[] ints = ceosReader.readInArray(6, 3);
    assertNotNull(ints);
    assertEquals(6, ints.length);
    assertEquals(123, ints[0]);
    assertEquals(45, ints[1]);
    assertEquals(6, ints[2]);
    assertEquals(46, ints[3]);
    assertEquals(7, ints[4]);
    assertEquals(234, ints[5]);
    assertEquals(prefix.length() + 6 * 3, _ios.getStreamPosition());
}