A mockery-like DSL to replace static method in test.