public void setResources(ResourceSpec minResources, ResourceSpec preferredResources) {
        OperatorValidationUtils.validateMinAndPreferredResources(minResources, preferredResources);
        this.minResources = minResources;
        this.preferredResources = preferredResources;
    }
@Test
    void testSetResourcesUseCaseFailNullResources() {
        ResourceSpec resourceSpec = ResourceSpec.newBuilder(1.0, 100).build();

        assertThatThrownBy(() -> transformation.setResources(null, resourceSpec))
                .isInstanceOf(NullPointerException.class);
        assertThatThrownBy(() -> transformation.setResources(resourceSpec, null))
                .isInstanceOf(NullPointerException.class);
    }