@Test
public void shouldMountSecret() {

  final Pod pod = createPod(WORKFLOW_INSTANCE, RUN_SPEC_WITH_SECRET,
      SECRET_SPEC_WITH_CUSTOM_SECRET);
  assertThat(pod.getSpec().getVolumes().size(), is(1));
  assertThat(pod.getSpec().getVolumes().get(0).getName(),
             is(RUN_SPEC_WITH_SECRET.secret().orElseThrow().name()));
  assertThat(pod.getSpec().getContainers().get(0).getVolumeMounts().get(0).getMountPath(),
             is(RUN_SPEC_WITH_SECRET.secret().orElseThrow().mountPath()));
  assertThat(pod.getSpec().getContainers().get(0).getVolumeMounts().get(0).getName(),
             is(RUN_SPEC_WITH_SECRET.secret().orElseThrow().name()));
}