public static void getInterestForRegion() {
    Region region1 = cache.getRegion(SEPARATOR + REGION_NAME);
    boolean exceptionOccurred = false;

    // test getInterestList()
    try {
      region1.getInterestList();
    } catch (UnsupportedOperationException e) {
      exceptionOccurred = true;
    } finally {
      if (!exceptionOccurred) {
        fail("UnsupportedOperationException was not thrown as expected for getInterestList()");
      }
    }

    // test getInterestListRegex()

    exceptionOccurred = false;
    try {
      region1.getInterestListRegex();
    } catch (UnsupportedOperationException e) {
      exceptionOccurred = true;
    } finally {
      if (!exceptionOccurred) {
        fail("UnsupportedOperationException was not thrown as expected for getInterestListRegex()");
      }
    }
  }
This method invokes all the getter API's for interest-list on the test-region and verifies that
<code>UnsupportedOperationException</code> is thrown in all the cases since test-region does
not have bridge-server or bridge-client.

@see Region#getInterestList()
@see Region#getInterestListRegex()
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/NewRegionAttributesDUnitTest.java