### Question:
PersistentContactService extends AbstractService implements ContactService { @Override public Contact newContact(String name) { return new Contact(UUID.randomUUID(), name); } PersistentContactService(WalletPassword walletPassword);   PersistentContactService(EncryptedContactsFile backingStoreFile, CharSequence password); @Override Contact newContact(String name); @Override List<Contact> allContacts(); @Override List<Contact> filterContactsByBitcoinAddress(Address address); @Override List<Contact> filterContactsByContent(String query, boolean excludeNotPayable); @Override Optional<Contact> filterContactsForSingleMatch(String query, boolean excludeNotPayable); @Override void addAll(Collection<Contact> selectedContacts); @Override void loadContacts(CharSequence password); @Override void removeAll(Collection<Contact> selectedContacts); @Override void updateContacts(Collection<Contact> editedContacts); @Override void writeContacts(); @Override void addDemoContacts();  }### Answer:
@Test public void testNewContact() throws Exception { assertThat(contactService.newContact("Fred Bloggs").getName()).isEqualTo("Fred Bloggs"); }