### Question:
HalLinkProvider implements Feature { public static LinkResult linkTo(Object invocation) { return getInstance().linkToInvocation(invocation); } private  HalLinkProvider(); static LinkResult linkTo(Object invocation); static T methodOn(Class<T> type); @Override boolean configure(FeatureContext context); static synchronized HalLinkProvider getInstance();  }### Answer:
@Test public void shouldFailWithNonProxiedMethod() { assertThatThrownBy(() -> linkTo("testMethod")) .isInstanceOf(HalLinkMethodInvocationException.class); }
@Test public void shouldFailWithNullProxiedMethod() { assertThatThrownBy(() -> linkTo(null)) .isInstanceOf(HalLinkMethodInvocationException.class) .hasMessageContaining("No proxied method invocation processed."); }