Method[] methods = DependencyInfo.class.getDeclaredMethods();
for(int i = numberOfInvocations; i >= 0; i--)
{
for (Method method : methods)
{
AbstractControllerContext context = new AbstractControllerContext(
method.getName(),
new MockControllerContextActions(),
ProxyDependencyInfo.createDependencyInfo(method, i)
);
try
{
install(context);
assertTrue(context.getName().toString(), ControllerState.ERROR.equals(context.getState()) || ControllerState.INSTALLED.equals(context.getState()));
}
catch (Throwable t)
{
assertEquals("getLifecycleCallbacks", method.getName());
assertInstanceOf(t, RuntimeException.class);