@Test
  public void testNetSearchFlag() {
    Region region = CacheUtils.createRegion("testRegion", null, Scope.DISTRIBUTED_ACK);
    // Put one entry in the region.
    region.put(1, 1);
    Set entries = region.entrySet();
    assertEquals(1, entries.size());

    Region.Entry nonTxEntry = (Entry) entries.iterator().next();
    RegionEntry entry = ((NonTXEntry) nonTxEntry).getRegionEntry();
    assertFalse(entry.getValueWasResultOfSearch());
    entry.setValueResultOfSearch(true);
    assertTrue(entry.getValueWasResultOfSearch());
    entry.setValueResultOfSearch(false);
    assertFalse(entry.getValueWasResultOfSearch());
  }
This test verifies the flag's on-off switching for boolean flags in AbstractRegionEntry.
Currently a byte array is used to maintain two flags.
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/RegionEntryFlagsJUnitTest.java