public function testConstructWithExistingPolicy() { $policy = ['bindings' => [['role' => 'test', 'members' => ['user:test@test.com']]], 'etag' => 'foo', 'version' => 2]; $builder = new PolicyBuilder($policy); $result = $builder->result(); $this->assertEquals($policy, $result); }