settings.addFullyQualifiedNamesOfClassesToLoadByMockClassloader(ResultCalculator.class.getName());
}
public void applyInterceptionPolicy(MockPolicyInterceptionSettings settings) {
final ResultCalculator calculatorMock = createMock(ResultCalculator.class);
expect(calculatorMock.calculate()).andReturn(2.0);
replay(calculatorMock);
Method calculateMethod = Whitebox.getMethod(ResultCalculator.class, "calculate");
settings.stubMethod(calculateMethod, calculatorMock.calculate());