def METHOD_NAME(self):
    created = datetime.fromtimestamp(1628512774)
    message_id = UUID('63026767-029d-417e-9148-77f4da49f49a')
    group_id = UUID('866350e8-1492-497e-b12b-c079287d51dd')
    message = ResultMessage(
        created=created,
        message_id=message_id,
        group_id=group_id,
        scan_id='scan_1',
        host_ip='1.1.1.1',
        host_name='foo',
        oid='1.2.3.4.5',
        value='A Vulnerability has been found',
        uri='file://foo/bar',
    )
    serialized = message.serialize()
    self.assertEqual(serialized['created'], 1628512774.0)
    self.assertEqual(
        serialized['message_id'], '63026767-029d-417e-9148-77f4da49f49a'
    )
    self.assertEqual(
        serialized['group_id'], '866350e8-1492-497e-b12b-c079287d51dd'
    )
    self.assertEqual(serialized['message_type'], 'result.scan')
    self.assertEqual(serialized['scan_id'], 'scan_1')
    self.assertEqual(serialized['host_ip'], '1.1.1.1')
    self.assertEqual(serialized['host_name'], 'foo')
    self.assertEqual(serialized['oid'], '1.2.3.4.5')
    self.assertEqual(serialized['value'], 'A Vulnerability has been found')
    self.assertEqual(serialized['uri'], 'file://foo/bar')
    self.assertEqual(serialized['port'], 'package')
    self.assertEqual(serialized['result_type'], 'ALARM')