### Question:
PreferenceScopeTypesMock implements PreferenceScopeTypes { @Override public String getDefaultKeyFor(String type) throws InvalidPreferenceScopeException { return "Key-" + type; }  @Override boolean typeRequiresKey(String type); @Override String getDefaultKeyFor(String type);  }### Answer:
@Test public void getDefaultKeyFor() { String type = "TYPE"; assertEquals("Key-TYPE", preferenceScopeTypesMock.getDefaultKeyFor(type)); }