agave-systems/systems-core/src/test/java/org/iplantc/service/transfer/http/HTTPClientTest.java
/**
	 * checks exception throws from {@link RemoteDataClient#doesExist(String)} when a 101-103 response code is returned.
	 * Our dev server does not support those codes, so we disale this test for the moment until we can mock out the call
	 * within the function.
	 * @param statusCode the code to return from the remote requet
	 * @param message the assertion message upon failure
	 * @throws IOException the expected exception for this test
	 * @throws Exception if anything else goes wrong
	 */
checks exception throws from  RemoteDataClient#doesExist(String) when a 101-103 response code is returned.
Our dev server does not support those codes, so we disale this test for the moment until we can mock out the call
within the function.
@param statusCode the code to return from the remote requet
@param message the assertion message upon failure
@throws IOException the expected exception for this test
@throws Exception if anything else goes wrong
checks exception throws from RemoteDataClient#doesExist ( String ) when a 101 - 103 response code is returned . Our dev server does not support those codes so we disale this test for the moment until we can mock out the call within the function . @param statusCode the code to return from the remote requet @param message the assertion message upon failure @throws IOException the expected exception for this test @throws Exception if anything else goes wrong
@Test(dataProvider = "doesExistThrowsExceptionOnAmbiguouStatusCodeProvider", expectedExceptions = IOException.class, enabled = false)
	public void doesExistThrowsExceptionOnAmbiguouStatusCode(int statusCode, String message) throws IOException {
		try {
			_doesExist(statusCode, false, message);
		} catch (Exception e) {
			Assert.fail(message, e);
		}
	}
@ Test ( dataProvider = "doesExistThrowsExceptionOnAmbiguouStatusCodeProvider" , expectedExceptions = IOException . class , enabled = false ) public void doesExistThrowsExceptionOnAmbiguouStatusCode ( int statusCode , String message ) throws IOException { try { _doesExist ( statusCode , false , message ) ; } catch ( Exception e ) { Assert . fail ( message , e ) ; } }
checks exception throws from {@link RemoteDataClient#doesExist(String)} when a 101-103 response code is returned.
checks exception throws from { @link RemoteDataClient#doesExist ( String ) } when a 101 - 103 response code is returned .
//			CloseableHttpResponse response = Mockito.mock(CloseableHttpResponse.class); //			Mockito.when(response.getStatusLine()).thenReturn(new BasicStatusLine(new ProtocolVersion("http",1,2),statusCode, "This is a test")); //			RemoteDataClient client = Mockito.mock(HTTP.class); //			Mockito.when(client.doRequest(Mockito.any(), Mockito.any())).thenReturn(response);