### Question:
PreferenceScopeTypesMock implements PreferenceScopeTypes { @Override public boolean typeRequiresKey(String type) throws InvalidPreferenceScopeException { return false; }  @Override boolean typeRequiresKey(String type); @Override String getDefaultKeyFor(String type);  }### Answer:
@Test public void typeRequiresKey() { IntStream.range(0, 20).forEach(value -> assertFalse(preferenceScopeTypesMock.typeRequiresKey(UUID.uuid()))); }