@Test(expected = ExecutionException.class) public void testGetAndRemoveAsyncOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception { Future<String> foo = cache4.getAndRemoveAsync(1); foo.get(); }
@Test public void testGetAndRemoveAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception { Future<String> foo = cache1.getAndRemoveAsync(1); foo.get(); }