def test_additional_metadata_correct_gate_model(program):
    metadata = AdditionalMetadata(action=program)
    assert metadata.action == program
    assert AdditionalMetadata.parse_raw(metadata.json()) == metadata
def test_additional_metadata_correct_annealing(problem, dwave_metadata):
    metadata = AdditionalMetadata(action=problem, dwaveMetadata=dwave_metadata)
    assert metadata.action == problem
    assert metadata.dwaveMetadata == dwave_metadata
    assert AdditionalMetadata.parse_raw(metadata.json()) == metadata