Step extends ResultMatch { public String getUrlFriendlyName() { return Integer.toString(hashCode()).replace("-", "0"); }  List<ResultMatch> getBefore(); void setBefore(final List<ResultMatch> before); int getLine(); void setLine(final int line); String getName(); void setName(final String name); String returnNameWithArguments(); String returnNameWithArgumentPlaceholders(); String getKeyword(); void setKeyword(final String keyword); List<Row> getRows(); void setRows(final List<Row> rows); List<ResultMatch> getAfter(); void setAfter(final List<ResultMatch> after); DocString getDocString(); void setDocString(final DocString docString); long getTotalDuration(); String returnTotalDurationString(); String getUrlFriendlyName(); @Override boolean equals(final Object o); @Override int hashCode();  }
@Test public void getUrlFriendlyNameTest() { when(step.getName()).thenReturn("This is a name with an argument inside."); String urlFriendlyName = step.getUrlFriendlyName(); assertThat(urlFriendlyName, is(not(equalTo("")))); }