@VisibleForTesting
  boolean isImagePushed(Optional<ManifestAndDigest<ManifestTemplate>> manifestResult) {

    return !(JibSystemProperties.skipExistingImages() && manifestResult.isPresent());
  }
@Test
  public void testIsImagePushed_skipExistingImageEnabledAndManifestNotPresent() {
    Optional<ManifestAndDigest<ManifestTemplate>> manifestResult = Mockito.mock(Optional.class);
    System.setProperty(JibSystemProperties.SKIP_EXISTING_IMAGES, "true");
    when(manifestResult.isPresent()).thenReturn(false);

    Assert.assertTrue(stepsRunner.isImagePushed(manifestResult));
  }