### Question:
HamletImpl extends HamletSpec { public static <E extends LINK> E setLinkHref(E e, String href) { if (href.endsWith(".css")) { e.$rel("stylesheet"); } e.$href(href); return e; } HamletImpl(PrintWriter out, int nestLevel, boolean wasInline); int nestLevel(); boolean wasInline(); void setWasInline(boolean state); PrintWriter getWriter(); Generic<T> root(String name, EnumSet<EOpt> opts); Generic<T> root(String name); static String[] parseSelector(String selector); static E setSelector(E e, String selector); static E setLinkHref(E e, String href); static E setScriptSrc(E e, String src);  }### Answer:
@Test public void testSetLinkHref() { LINK link = mock(LINK.class); HamletImpl.setLinkHref(link, "uri"); HamletImpl.setLinkHref(link, "style.css"); verify(link).$href("uri"); verify(link).$rel("stylesheet"); verify(link).$href("style.css"); verifyNoMoreInteractions(link); }