@Test
public void testGetAsyncConnection() throws InterruptedException, ExecutionException{

	expect(mockPartition.isUnableToCreateMoreTransactions()).andReturn(true).once();
	expect(mockPartition.getFreeConnections()).andReturn(mockConnectionHandles).anyTimes();
	expect(mockPartition.getAvailableConnections()).andReturn(1).anyTimes();
	expect(mockConnectionHandles.poll()).andReturn(mockConnection).once();
	mockConnection.renewConnection();
	expectLastCall().once();
	replay(mockPartition, mockConnectionHandles, mockConnection);
	assertEquals(mockConnection, testClass.getAsyncConnection().get());
	verify(mockPartition, mockConnectionHandles, mockConnection);

}