### Question:
ParameterMdcFactory { public static ParameterMdc newInstance(Mdc mdc) { return new ParameterMdc(mdc.key(), mdc.value(), mdc.global()); }  static ParameterMdc newInstance(Mdc mdc);  }### Answer:
@Test public void newInstance() { Mdc mdc = givenMdc(); ParameterMdc definition = ParameterMdcFactory.newInstance(mdc); assertThat(definition.getKey(), is("key")); assertThat(definition.getExpressionString(), is("value")); assertTrue(definition.isGlobal()); }