public void testIllegalAccessMode() throws Throwable {
   AbstractBeanMetaData abmd = new AbstractBeanMetaData();
   abmd.setAccessMode(BeanAccessMode.FIELDS);
   try {
     AnnotationToBeanMetaDataFactory.fillBeanMetaData(Object.class, BeanAccessMode.ALL, abmd);
     fail("Should not be here.");
   } catch (Throwable t) {
     assertInstanceOf(t, IllegalArgumentException.class);
   }
 }
 protected void setParameterizedMetaData(
     AbstractInstallMetaData parameterizedMetaData, BeanMetaData beanMetaData) {
   AbstractBeanMetaData abmd = checkIfNotAbstractBeanMetaDataSpecific(beanMetaData);
   List<InstallMetaData> installs = beanMetaData.getInstalls();
   if (installs == null) {
     installs = new ArrayList<InstallMetaData>();
     abmd.setInstalls(installs);
   }
   installs.add(parameterizedMetaData);
 }