1, 'resources' => 'record2'] ) ); $this->assertSame("The consumer isn't authorized to access record2.", $authorizationException->getMessage()); } }