TAConfig implements XmlConvertible { public RegionConfiguration[] getRegions() { return regions; } TAConfig(RegionConfiguration... regions); RegionConfiguration[] getRegions(); static TAConfig get(Configuration conf); static TAConfig fromXml(String xml); @Override String toXml();  }
@Test public void testObjectCreation() { TAConfig.RegionConfiguration[] regions = config.getRegions(); assertNotNull(regions); assertEquals(2, regions.length); assertEquals("P1", regions[0].getName()); assertTrue(factory.createPoint(new Coordinate(10.1, 12.4)).equalsExact(regions[0].getGeometry())); assertNull(regions[0].getMinElevation()); assertNull(regions[0].getMaxElevation()); assertEquals("P2", regions[1].getName()); assertTrue(factory.createPoint(new Coordinate(32.8, 19.9)).equalsExact(regions[1].getGeometry())); assertNull(regions[1].getMinElevation()); assertEquals(new Double(-1000.0), regions[1].getMaxElevation()); }