NativeHTTPDataLoader implements DataLoader { public long getTimeout() { return timeout; }  @Override DataAndUrl get(List<String> urlStrings); @Override byte[] get(String url); @Override byte[] get(String url, boolean refresh); @Override byte[] post(String url, byte[] content); @Override void setContentType(String contentType); long getMaxInputSize(); void setMaxInputSize(long maxInputSize); long getTimeout(); void setTimeout(long timeout);  }
@Test public void testGetTimeout() { NativeHTTPDataLoader dataLoader = new NativeHTTPDataLoader(); dataLoader.setTimeout(1); assertThrows(DSSException.class, () -> dataLoader.get(HTTP_URL_TO_LOAD)); }