    @Test
    public void nullRetention() throws Descriptor.FormException {

        final DockerSlaveTemplate template = new DockerSlaveTemplate("id");
        template.setRetentionStrategy(null);

        assertThat(notAllowedStrategy(template), is(true));
    }