def METHOD_NAME(self):
    """
    Tests before and after start as well as after stop metadata.
    """
    my_driver = TestDriverMetadata.MyDriver(
        name="mydriver",
        metadata_extractor=TestDriverMetadata.metadata_extractor_mydriver,
    )
    test = my_driver.extract_driver_metadata().to_dict()
    expected = {"test_attribute": my_driver.test_attribute}
    assert test == expected
    my_driver.start()
    test = my_driver.extract_driver_metadata().to_dict()
    expected["test_attribute"] = "foo"
    assert test == expected
    my_driver.stop()
    test = my_driver.extract_driver_metadata().to_dict()
    expected["test_attribute"] = "bar"
    assert test == expected