@Test
 public void unsupportedWhenAnnotationDoesNotHasTemplateKey() {
   assertFalse(
       "Exp. the capability to not be supported because it does not have the template annotation",
       capability.isSupported());
   assertEquals("Exp. to get the template name", "", capability.getTemplateName());
 }
  @Test
  public void supportedWhenAnnotationHasTemplateKey() {
    when(resource.isAnnotatedWith("template")).thenReturn(true);
    when(resource.getAnnotation("template")).thenReturn("aTemplateName");

    assertTrue(
        "Exp. the capability to be supported because it has the template annotation",
        capability.isSupported());
    assertEquals("Exp. to get the template name", "aTemplateName", capability.getTemplateName());
  }