@Test
  public void testCopyConstructor() {
    AttributesFactory f1 = new AttributesFactory();
    f1.setLockGrantor(true);

    RegionAttributes origAttrs = f1.create();
    assertEquals(true, origAttrs.isLockGrantor());

    AttributesFactory f2 = new AttributesFactory(origAttrs);
    RegionAttributes attrs = f2.create();

    assertEquals(true, attrs.isLockGrantor());
  }
Tests the functionality of the {@link AttributesFactory} class.

@since GemFire 3.0
geode-core/src/test/java/org/apache/geode/cache/AttributesFactoryJUnitTest.java