def test_update(self, *, rmock: requests_mock.Mocker) -> None:
        rmock.put("http://test/api/publish/s3%3Aaptly-repo%3Atest_xyz__1/test",
                  text='{"AcquireByHash":false,"Architectures":["amd64"],"Distribution":"test","Label":"",'
                       '"Origin":"","Prefix":"test/xyz_1","SkipContents":false,'
                       '"SourceKind":"local","Sources":[{"Component":"main","Name":"aptly-repo"}],'
                       '"Storage":"s3:aptly-repo"}')
        self.assertEqual(
            self.papi.update(
                prefix="s3:aptly-repo:test/xyz_1",
                distribution="test",
                sign_batch=True,
                sign_gpgkey="A16BE921",
                sign_passphrase="123456",
            ),
            PublishEndpoint(
                storage='s3:aptly-repo',
                prefix='test/xyz_1',
                distribution='test',
                source_kind='local',
                sources=[{
                    'Name': 'aptly-repo',
                    'Component': 'main'
                }],
                architectures=['amd64'],
                label='',
                origin='',
                acquire_by_hash=False
            )
        )