### Question:
PrefixField extends TextField implements ResettableView { public void addMenuItemFor(Prefix... prefixes) { for (Prefix current : prefixes) { this.menu.getItems().add(new PrefixMenuItem(current)); } } PrefixField(String placeholder); void addMenuItemFor(Prefix... prefixes); void addMenuItemFor(String... prefixes); @Override void resetView();  }### Answer:
@Test @Category(NoHeadless.class) public void prefixMenuItemIsAdded() { victim.addMenuItemFor(Prefix.BOOKMARK); rightClickOn(victim).clickOn("#addPrefixMenu").clickOn(Prefix.BOOKMARK.getFriendlyName()); assertTrue(victim.getText().contains(Prefix.BOOKMARK.getFriendlyName())); }
@Test @Category(NoHeadless.class) public void prefixMenuItemIsAddedString() { victim.addMenuItemFor("Chuck"); rightClickOn(victim).clickOn("#addPrefixMenu").clickOn("Chuck"); assertTrue(victim.getText().contains("Chuck")); }