public function test_json_mapper_get_set() { $context = new DefaultContext(); $context->setJsonMapper($expected = $this->getJsonMapperMock()); $this->assertSame($expected, $context->jsonMapper()); }