@Test
public void should_use_specified_strategy_when_override_set() {

  assertThat(properties.getOverrideStrategy()).isNull();
  properties.setOverrideStrategy("denyAllStrategy");
  try {
    assertThat(strategyFor(UnknownStrategyObject.class)).isSameAs(denyAllStrategy);
  } finally {
    properties.setOverrideStrategy(null);
  }
}