### Question:
SpecimenBuilderContext implements SpecimenContext { @Override public Object resolve(Object request) { return this.builder.create(request, this); } SpecimenBuilderContext(SpecimenBuilder builder); @Override Object resolve(Object request);  }### Answer:
@Test public void resolve_calls_builder_with_request_and_itself_as_the_context() { this.context.resolve(String.class); verify(mockSpecimenBuilder).create(String.class, this.context); }
@Test public void resolve_returns_result_on_builder() { Object builderResult = new Object(); when(mockSpecimenBuilder.create(String.class, this.context)).thenReturn(builderResult); Object result = this.context.resolve(String.class); assertSame(builderResult, result); }