1. A computer-executable method for testing a multi-threaded software application, comprising: in response to invocation of a mock object, identifying a thread by a computer; determining whether the identified thread matches a description associated with an actor; in response to the identified thread matching the description associated with the actor, evaluating whether an expectation is met or a stub is executed; and returning a value based on the evaluation.