public ProcessingMode getMode() {
    return mode;
  }
@Test
  public void testParse_mode() {
    Jar jarCommand =
        CommandLine.populateCommand(
            new Jar(), "--target=test-image-ref", "--mode=packaged", "my-app.jar");
    assertThat(jarCommand.getMode()).isEqualTo(ProcessingMode.packaged);
  }