TL;DR: wrap your method call in the expect() statement. Instead of expect(obj.method()).toThrow(), write expect( () => { obj.method() }).toThrow().
While in the
TL;DR: Put your data files in test/resources and access it with:
InputStream inputStream = this.getClass()
.getClassLoader()
.getResourceAsStream(path);
I've got an