@Test
public void doesNotDoAnythingIfExceptionIsThrown() throws IOException {

    PowerMockito.mockStatic(IOUtils.class);
    PowerMockito.when(IOUtils.toString(any(InputStream.class))).thenThrow(new IOException("Exception while reading spec"));
    String[] args = {
            "update", "-a", "configuration.json"
    };
    Main.main(args);
}