### Question:
InvokeExampleMethod extends Statement { @Override public void evaluate() throws Throwable { final Optional<Object[]> parameters = this.parametersConverter.resolve(this.testMethod.getMethod(), this.example); if (parameters.isPresent()) { this.testMethod.invokeExplosively(this.target, parameters.get()); } else { throw new CheesecakesException( String.format( "Unable to invoke test. Incorrect parameters for '%s' in '%s'.", this.testMethod.getName(), this.testMethod.getDeclaringClass())); } } InvokeExampleMethod(
      final ExampleParametersResolver parametersConverter,
      final FrameworkMethod testMethod,
      final Object target,
      final Example.Builder example); @Override void evaluate();  }### Answer:
@Test public void parametersResolved() throws Throwable { final Example.Builder example = new Example.Builder(null, null, null); final Method testMethod = retrieveMethod("methodReference"); final ExampleParametersResolver exampleParametersResolver = Mockito.mock(ExampleParametersResolver.class); final InvokeExampleMethod invoker = new InvokeExampleMethod( exampleParametersResolver, new FrameworkMethod(testMethod), this, example); Mockito.when(exampleParametersResolver.resolve(testMethod, example)) .thenReturn(Optional.of(new Object[] {"A", 1})); invoker.evaluate(); Assertions.assertThat(this.methodInvoked).isTrue(); }