DDMRESTDataProvider implements DDMDataProvider { @Override public DDMDataProviderResponse getData( DDMDataProviderRequest ddmDataProviderRequest) throws DDMDataProviderException { try { return doGetData(ddmDataProviderRequest); } catch (HttpException httpException) { Throwable throwable = httpException.getCause(); if (throwable instanceof ConnectException) { if (_log.isWarnEnabled()) { _log.warn(throwable, throwable); } DDMDataProviderResponse.Builder builder = DDMDataProviderResponse.Builder.newBuilder(); return builder.withStatus( DDMDataProviderResponseStatus.SERVICE_UNAVAILABLE ).build(); } throw new DDMDataProviderException(httpException); } catch (Exception exception) { throw new DDMDataProviderException(exception); } }  @Override DDMDataProviderResponse getData(
			DDMDataProviderRequest ddmDataProviderRequest); @Override Class<?> getSettings();  }
@Test(expected = DDMDataProviderException.class) public void testGetDataCatchException() throws Exception { DDMDataProviderRequest.Builder builder = DDMDataProviderRequest.Builder.newBuilder(); DDMDataProviderRequest ddmDataProviderRequest = builder.withParameter( "filterParameterValue", "brazil" ).withParameter( "paginationStart", "1" ).withParameter( "paginationEnd", "10" ).build(); _ddmRESTDataProvider.getData(ddmDataProviderRequest); }