### Question:
NativeCharacterType { public static CharacterType get(Hero hero){ return hero.getTemplate().getTemplateType().getCharacterType(); }  static CharacterType get(Hero hero);  }### Answer:
@Test public void returnsNativeTypeFromTemplate() throws Exception { CharacterType expectedType = new DummyMundaneCharacterType(); Hero hero = mock(Hero.class); when(hero.getTemplate()).thenReturn(new DummyHeroTemplate()); CharacterType type = NativeCharacterType.get(hero); assertThat(type, is(expectedType)); }