### Question:
MarkupToEclipseHelpMojo extends AbstractMojo { protected String calculateHelpPrefix(String relativePath) { String prefix = helpPrefix == null ? "" : helpPrefix; if (relativePath.length() > 0) { if (prefix.length() > 0) { prefix += "/"; } prefix += relativePath; } return prefix.length() == 0 ? null : prefix.replaceAll("\\\\", "/"); }  void execute();  }### Answer:
@Test public void calculateHelpPrefixRoot() { assertNull(markupToEclipseHelp.calculateHelpPrefix("")); }
@Test public void calculateHelpPrefix() { assertEquals("test/one", markupToEclipseHelp.calculateHelpPrefix("test/one")); }
@Test public void calculateHelpPrefixRootWithHelpPrefix() { markupToEclipseHelp.helpPrefix = "help"; assertEquals("help", markupToEclipseHelp.calculateHelpPrefix("")); }
@Test public void calculateHelpPrefixWithHelpPrefix() { markupToEclipseHelp.helpPrefix = "help"; assertEquals("help/test/one", markupToEclipseHelp.calculateHelpPrefix("test/one")); }
@Test public void calculateHelpPrefixWindowsSeparator() { assertEquals("test/one", markupToEclipseHelp.calculateHelpPrefix("test\\one")); }