### Question:
OpenStorefrontRuntimeException extends RuntimeException { @Override public String getLocalizedMessage() { StringBuilder sb = new StringBuilder(); sb.append(super.getLocalizedMessage()); if (StringUtils.isNotBlank(potentialResolution)) { sb.append(" Potential Resolution: ").append(potentialResolution); } if (StringUtils.isNotBlank(errorTypeCode)) { sb.append(" Error Type Code: ").append(errorTypeCode); } return sb.toString(); } OpenStorefrontRuntimeException(String message, String potentialResolution, Throwable thrwbl, String errorTypeCode);  OpenStorefrontRuntimeException(String message, String potentialResolution, String errorTypeCode);  OpenStorefrontRuntimeException();  OpenStorefrontRuntimeException(String message);  OpenStorefrontRuntimeException(String message, String potentialResolution);  OpenStorefrontRuntimeException(String message, Throwable thrwbl);  OpenStorefrontRuntimeException(String message, Throwable thrwbl, String errorTypeCode);  OpenStorefrontRuntimeException(String message, String potentialResolution, Throwable thrwbl);  OpenStorefrontRuntimeException(Throwable thrwbl); String getPotentialResolution(); String getErrorTypeCode(); @Override String getLocalizedMessage();  }### Answer:
@Test public void testGetLocalizedMessage() { LOG.info("getLocalizedMessage"); LOG.info("Scenario 1: nothing"); OpenStorefrontRuntimeException instance = new OpenStorefrontRuntimeException(); String expResult = "null Error Type Code: SYS"; String result = instance.getLocalizedMessage(); assertEquals(expResult, result); LOG.info("Scenario 2: message"); instance = new OpenStorefrontRuntimeException("test"); expResult = "test Error Type Code: SYS"; result = instance.getLocalizedMessage(); assertEquals(expResult, result); LOG.info("Scenario 3: potential messsage"); instance = new OpenStorefrontRuntimeException("test", "bad"); expResult = "test Potential Resolution: bad Error Type Code: SYS"; result = instance.getLocalizedMessage(); assertEquals(expResult, result); LOG.info("Scenario 4: all"); instance = new OpenStorefrontRuntimeException("test", "bad", "505"); expResult = "test Potential Resolution: bad Error Type Code: 505"; result = instance.getLocalizedMessage(); assertEquals(expResult, result); }