AutonomiccsSystemVmTemplateService implements InitializingBean { public String getAutonomiccsSystemVmTemplateDisplayText(HypervisorType hypervisor) { return String.format("%s - %s", autonomiccsSystemVmTemplateDisplayText, hypervisor.name().toLowerCase()); }  boolean isTemplateRegisteredForHypervisor(HypervisorType hypervisorType); String getAutonomiccsSystemVmTemplateDisplayText(HypervisorType hypervisor); String getAutonomiccsSystemVmTemplateName(HypervisorType hypervisor); String getSystemVmTemplateUrl(HypervisorType hypervisor); VMTemplateVO findAutonomiccsSystemVmTemplate(HypervisorType hypervisor); @Override /** * This method is executed by Spring framework. * It configures the template's display text and name */ void afterPropertiesSet(); boolean isTemplateRegisteredAndReadyForHypervisor(HypervisorType hypervisorType);  }
@Test public void getAutonomiccsSystemVmTemplateDisplayTextTest() { String result = spy.getAutonomiccsSystemVmTemplateDisplayText(HypervisorType.Any); Assert.assertEquals("autonomiccsSystemVmTemplateDisplayText - any", result); }