assertInstalls(expected, bean.getUninstalls());
}
public void testBeanWithUninstalls() throws Exception
{
AbstractBeanMetaData bean = unmarshalBean();
assertNull(bean.getName());
assertEquals("Dummy", bean.getBean());
assertNull(bean.getMode());
assertNull(bean.getAnnotations());
assertNull(bean.getClassLoader());
assertNull(bean.getConstructor());
assertNull(bean.getProperties());
assertNull(bean.getCreate());
assertNull(bean.getStart());
assertNull(bean.getStop());
assertNull(bean.getDestroy());
assertNull(bean.getDemands());
assertNull(bean.getSupplies());
assertNull(bean.getInstalls());
assertNull(bean.getInstallCallbacks());
assertNull(bean.getUninstallCallbacks());
ArrayList<String> expected = new ArrayList<String>();
expected.add("Uninstall1");
expected.add("Uninstall2");
expected.add("Uninstall3");
assertInstalls(expected, bean.getUninstalls());
}