    @Test
    public void shouldDisablePatching() throws Exception {

        // GIVEN
        envVars.set(ServiceResourceUtil.K8S_PIPELINE_SERVICE_PATCH, "disabled");
        Set<HasMetadata> entities = getEntitiesFromResource("/services/invalidservice1.yaml");
        ServiceResourceUtil util = new ServiceResourceUtil();

        // WHEN
        util.patchServiceName(entities);

        // THEN
        HasMetadata service = getKind(entities, "Service");
        Route route = (Route) getKind(entities, "Route");
        assertEquals(2, entities.size());
        assertEquals("12Nodejs-rest-http", service.getMetadata().getName());
        assertEquals("12Nodejs-rest-http", route.getSpec().getTo().getName());
    }