private MethodNameBasedMBeanInfoAssembler getWithMapping(String name, String mapping) {
   MethodNameBasedMBeanInfoAssembler assembler = new MethodNameBasedMBeanInfoAssembler();
   Properties props = new Properties();
   props.setProperty(name, mapping);
   assembler.setMethodMappings(props);
   return assembler;
 }
  @Test
  public void testWithFallThrough() throws Exception {
    MethodNameBasedMBeanInfoAssembler assembler =
        getWithMapping("foobar", "add,myOperation,getName,setName,getAge");
    assembler.setManagedMethods(new String[] {"getNickName", "setNickName"});

    ModelMBeanInfo inf = assembler.getMBeanInfo(getBean(), getObjectName());
    MBeanAttributeInfo attr = inf.getAttribute("NickName");

    assertNickName(attr);
  }