FileData implements Serializable { public byte[] getContent() { return getContent(1); } FileData();   FileData(FileData source); SortedMap<Integer, byte[]> getAllRecordsContent(); byte[] getContent(); byte[] getContent(int numRecord); byte[] getContent(int numRecord, int dataOffset, int dataLength); int getContentAsCounterValue(int numCounter); SortedMap<Integer, Integer> getAllCountersValue(); @Override String toString();  }
@Test(expected = NoSuchElementException.class) public void getContent_whenRecord1IsNotSet_shouldThrowNSEE() { file.getContent(); }
@Test(expected = NoSuchElementException.class) public void getContentP1_whenRecordIsNotSet_shouldThrowNSEE() { file.getContent(1); }
@Test(expected = IllegalArgumentException.class) public void getContentP3_whenOffsetLt0_shouldThrowIAE() { file.getContent(1, -1, 1); }
@Test(expected = IllegalArgumentException.class) public void getContentP3_whenLengthLt1_shouldThrowIAE() { file.getContent(1, 0, 0); }
@Test(expected = NoSuchElementException.class) public void getContentP3_whenRecordIsNotSet_shouldThrowNSEE() { file.getContent(1, 0, 1); }