### Question:
DetailViewModel implements ViewModel { public ReadOnlyStringProperty nameLabelTextProperty() { return name.getReadOnlyProperty(); }  void initialize(); Command getEditCommand(); Command getRemoveCommand(); Command getEmailLinkCommand(); ReadOnlyStringProperty nameLabelTextProperty(); ReadOnlyStringProperty birthdayLabelTextProperty(); ReadOnlyStringProperty roleDepartmentLabelTextProperty(); ReadOnlyStringProperty emailLabelTextProperty(); ReadOnlyStringProperty phoneLabelTextProperty(); ReadOnlyStringProperty mobileLabelTextProperty(); ReadOnlyStringProperty cityPostalcodeLabelTextProperty(); ReadOnlyStringProperty streetLabelTextProperty(); ReadOnlyStringProperty countrySubdivisionLabelTextProperty(); static final String OPEN_EDIT_CONTACT_DIALOG; }### Answer:
@Test public void testNameLabelText() { luke.setFirstname("Luke"); luke.setLastname("Skywalker"); obi.setFirstname("Obi-Wan"); obi.setLastname("Kenobi"); obi.setTitle("Master"); selectedContact.set(null); assertThat(viewModel.nameLabelTextProperty()).hasValue(""); selectedContact.set(luke); assertThat(viewModel.nameLabelTextProperty()).hasValue("Luke Skywalker"); selectedContact.set(obi); assertThat(viewModel.nameLabelTextProperty()).hasValue("Master Obi-Wan Kenobi"); }