public static class ClassWithOneBehaviourMethod {
public void shouldDoOneThing() {}
}
private Matcher successfulResultFromMethodCalled(final String name) {
return new Matcher() {
public boolean matches(Object arg) {
Result result = (Result)arg;
return result.succeeded() && result.name().equals(name);
}
public String toString() {