AuthorizedServices { public void setTemplates(HashMap<String, AuthorizedService> services) { this.services = services; }  HashMap<String, AuthorizedService> getServices(); void setTemplates(HashMap<String, AuthorizedService> services); AuthorizedService get(String name); boolean contains(String name); Set<String> names();  }
@Test public void testSetTemplates() { AuthorizedServices authorizedService = new AuthorizedServices(); @SuppressWarnings("unchecked") HashMap<String, AuthorizedService> authorizedServiceHash = Mockito.mock(HashMap.class); authorizedService.setTemplates(authorizedServiceHash); }