### Question:
PluginConfigurationProcessor { static ContainerizingMode getContainerizingModeChecked( RawConfiguration rawConfiguration, ProjectProperties projectProperties) throws InvalidContainerizingModeException { ContainerizingMode mode = ContainerizingMode.from(rawConfiguration.getContainerizingMode()); if (mode == ContainerizingMode.PACKAGED && projectProperties.isWarProject()) { throw new UnsupportedOperationException( "packaged containerizing mode for WAR is not yet supported"); } return mode; }  static JibBuildRunner createJibBuildRunnerForDockerDaemonImage(
      RawConfiguration rawConfiguration,
      InferredAuthProvider inferredAuthProvider,
      ProjectProperties projectProperties,
      HelpfulSuggestions helpfulSuggestions); static JibBuildRunner createJibBuildRunnerForTarImage(
      RawConfiguration rawConfiguration,
      InferredAuthProvider inferredAuthProvider,
      ProjectProperties projectProperties,
      HelpfulSuggestions helpfulSuggestions); static JibBuildRunner createJibBuildRunnerForRegistryImage(
      RawConfiguration rawConfiguration,
      InferredAuthProvider inferredAuthProvider,
      ProjectProperties projectProperties,
      HelpfulSuggestions helpfulSuggestions); static String getSkaffoldSyncMap(
      RawConfiguration rawConfiguration, ProjectProperties projectProperties, Set<Path> excludes);  }### Answer:
@Test public void testGetContainerizingModeChecked_packagedWithWar() throws InvalidContainerizingModeException { Mockito.when(rawConfiguration.getContainerizingMode()).thenReturn("packaged"); Mockito.when(projectProperties.isWarProject()).thenReturn(true); try { PluginConfigurationProcessor.getContainerizingModeChecked( rawConfiguration, projectProperties); Assert.fail(); } catch (UnsupportedOperationException ex) { Assert.assertEquals( "packaged containerizing mode for WAR is not yet supported", ex.getMessage()); } }