### Question:
ErrorDescriptorTemplateRegistry { public static ErrorDescriptorTemplate fromCode(String code) { return errorDescriptorTemplateMap.get(code); }  static ErrorDescriptorTemplate fromCode(String code);  }### Answer:
@Test public void fromCode_registeredTemplate_returnDescriptorTemplate() { assertEquals(MANDATORY_PARAMETER_ERROR, fromCode(MANDATORY_PARAMETER_ERROR.getCode())); }
@Test public void fromCode_noneRegisteredTemplate_returnNull() { assertNull(fromCode("none.existing.error.code")); }