### Question:
CharacterGenerator implements SpecimenBuilder { @Override public Object create(Object request, SpecimenContext context) { if (!request.equals(Character.class)) { return new NoSpecimen(); } return (char) (random.nextInt(26) + 'a'); }  @Override Object create(Object request, SpecimenContext context);  }### Answer:
@Test public void non_character_type_returns_no_specimen() { Object result = this.characterGenerator.create(Integer.class, null); assertEquals(new NoSpecimen(), result); }
@Test public void character_type_request_returns_a_character() { Object result = this.characterGenerator.create(Character.class, null); assertTrue(result instanceof Character); }