  @Test
  public void testInvalidHeader_incomplete() {

    try {
      headerChunk.readHeader(new ByteArrayInputStream(new byte[1]));
      fail("Incomplete header");
    } catch (IOException e) {
      // everything is OK
    }
  }