### Question:
CommonDurabilityOptions extends CommonOptions<SELF> { public SELF durability(final PersistTo persistTo, final ReplicateTo replicateTo) { notNull(persistTo, "PersistTo"); notNull(replicateTo, "ReplicateTo"); if (durabilityLevel.isPresent()) { durabilityLevel = Optional.empty(); } this.persistTo = persistTo; this.replicateTo = replicateTo; return self(); }  SELF durability(final PersistTo persistTo, final ReplicateTo replicateTo); SELF durability(final DurabilityLevel durabilityLevel);  }### Answer:
@Test void overridesConflictingDurability() { TestDurabilityOptions options = new TestDurabilityOptions(); options.durability(DurabilityLevel.MAJORITY); options.durability(PersistTo.ACTIVE, ReplicateTo.ONE); assertEquals(Optional.empty(), options.build().durabilityLevel()); options = new TestDurabilityOptions(); options.durability(PersistTo.ACTIVE, ReplicateTo.ONE); options.durability(DurabilityLevel.MAJORITY); assertEquals(PersistTo.NONE, options.build().persistTo()); assertEquals(ReplicateTo.NONE, options.build().replicateTo()); }