String installerRule = "installerRule";
// In these cases the priority resolver should decide
when( priorityResolver.resolve( "skipOne", groupRule ) ).thenReturn( InstallerAction.REGISTER );
when( priorityResolver.resolve( "registerOne", groupRule ) ).thenReturn( InstallerAction.SKIP );
when( priorityResolver.resolve( "disabled", installerRule ) ).thenReturn( InstallerAction.EXECUTE );
// No matter it should always return DISABLED
assertEquals( InstallerAction.DISABLED, settings.shouldRun( "skipOne", groupRule ) );
assertEquals( InstallerAction.DISABLED, settings.shouldRun( "registerOne", groupRule ) );
assertEquals( InstallerAction.DISABLED, settings.shouldRun( "disabled", installerRule ) );