GetAdapter implements ReadOperationAdapter<Get> { public static Get setCheckExistenceOnly(Get get) { if (get.isCheckExistenceOnly()) { return get; } else { Get existsGet = new Get(get); existsGet.setCheckExistenceOnly(true); return existsGet; } } GetAdapter(ScanAdapter scanAdapter); static Get setCheckExistenceOnly(Get get); @Override void adapt(Get operation, ReadHooks readHooks, Query query); Filters.Filter buildFilter(Get operation);  }
@Test public void testCheckExistenceOnlyWhenFalse() throws IOException { Get get = makeValidGet(dataHelper.randomData(PREFIX_DATA)); Assert.assertTrue(getAdapter.setCheckExistenceOnly(get).isCheckExistenceOnly()); }
@Test public void testCheckExistenceOnlyWhenTrue() throws IOException { Get get = makeValidGet(dataHelper.randomData(PREFIX_DATA)); get.setCheckExistenceOnly(true); Assert.assertEquals(get, getAdapter.setCheckExistenceOnly(get)); }