@@ -0,0 +1,1105 @@
+package org.csanchez.jenkins.plugins.kubernetes;%0A%0Aimport org.junit.Test;%0A%0Aimport java.util.Collections;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.containsString;%0Aimport static org.hamcrest.Matchers.not;%0A%0Apublic class PodTemplateTest %7B%0A%0A    @Test%0A    public void descriptionHonorsShowRawYaml() %7B%0A        PodTemplate pt = new PodTemplate();%0A        ContainerTemplate ct1 = new ContainerTemplate(%22foo%22, %22image%22);%0A        pt.setContainers(Collections.singletonList(ct1));%0A        String yaml =%0A                %22metadata:%5Cn%22 +%0A                %22  annotations:%5Cn%22 +%0A                %22    foo: bar%5Cn%22;%0A        pt.setYamls(Collections.singletonList(yaml));%0A        String description = pt.getDescriptionForLogging();%0A        assertThat(description, containsString(%22%5Bfoo%5D image%22));%0A        assertThat(description, containsString(%22yaml:%5Cn%22+yaml));%0A%0A        pt.setShowRawYaml(false);%0A        description = pt.getDescriptionForLogging();%0A        assertThat(description, not(containsString(%22yaml:%5Cn%22)));%0A        assertThat(description, not(containsString(yaml)));%0A    %7D%0A%7D%0A

Add a unit test for the `showRawYaml` option (#525)