@Test
public void readFromFileThatIsTooLarge() throws URISyntaxException, DeserializationException,
        IOException {

    File file = new File(Objects.requireNonNull(NefFileTest.class.getClassLoader()
            .getResource("contracts/too_large.nef")).toURI());
    expectedException.expect(IllegalArgumentException.class);
    NefFile.readFromFile(file);
}