private void checkNotExtendedLimitExceeded(int maxLevel, Category type) {
    boolean foundException = false;
    try {
      testNestedinArrayAtLevel(maxLevel, type, new Properties());
    }catch (SerDeException serdeEx){
      foundException = true;
    }
    assertTrue("Expected exception for exceeding nesting limit" , foundException);
  }
Test the LazyMap class with multiple levels of nesting, when nesting
levels are not extended
serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazyArrayMapStruct.java