def METHOD_NAME(self) -> None:
    pulse = self.to_test_constructor(measurements=[('mw', 0, 5)])
    with self.assertRaises(KeyError):
        pulse.get_measurement_windows(parameters=dict(), measurement_mapping=dict())
    windows = pulse.get_measurement_windows(parameters=dict(), measurement_mapping={'mw': 'asd'})
    self.assertEqual([('asd', 0, 5)], windows)
    self.assertEqual(pulse.measurement_declarations, [('mw', 0, 5)])