### Question:
GlobalAddressBook { public Contact getContact(String contactId) { return addressBookMap.get(contactId); }  String addContact(Contact contact); List<Contact> getAll(); Contact getContact(String contactId);  }### Answer:
@Test public void testGetContact() { GlobalAddressBook addressBook = new GlobalAddressBook(); Contact expected = new Contact(); expected.setFirstName("Pedro"); String expectedId = addressBook.addContact(expected); Contact actual = addressBook.getContact(expectedId); assertEquals(expectedId, actual.getId()); assertEquals("Pedro", actual.getFirstName()); }