mocha pattern