@Test
public void testTitusAttributesAreResetIfProvidedByUser() {

    JobDescriptor<BatchJobExt> jobDescriptor = newBatchJob().getValue().toBuilder()
            .withAttributes(ImmutableMap.<String, String>builder()
                    .put("myApp.a", "b")
                    .put(TITUS_NON_COMPLIANT_FEATURES + "a", "b")
                    .build()
            )
            .build();
    ExtendedJobSanitizer sanitizer = new ExtendedJobSanitizer(configuration, jobAssertions, entitySanitizer, disruptionBudgetSanitizer, jd -> false, jd -> false, titusRuntime);
    Optional<JobDescriptor<BatchJobExt>> sanitized = sanitizer.sanitize(jobDescriptor);
    assertThat(sanitized).isNotEmpty();
    assertThat(sanitized.get().getAttributes()).containsOnlyKeys("myApp.a");
}