@Test(expected = UncheckedIOException.class)
public void readJsonFile_test() throws IOException {

    Resource resource = mock(Resource.class);
    when(resource.getInputStream()).thenThrow(IOException.class);
    target.readJsonFile(resource);
}