@Test public void text_is_not_shortend_when_text_is_lower_than_50_and_50_is_set_as_maxlength() { assertEquals("I am not reduced", sanitizerToTest.sanitize("I am not reduced", 50)); }
public String sanitize(Object maybeContaminated, int maxLength) { String objAsString = null; if (maybeContaminated!=null) { objAsString = maybeContaminated.toString(); } return sanitize(objAsString, maxLength); }
LogSanitizer { public String sanitize(Object maybeContaminated, int maxLength) { String objAsString = null; if (maybeContaminated!=null) { objAsString = maybeContaminated.toString(); } return sanitize(objAsString, maxLength); } }
LogSanitizer { public String sanitize(Object maybeContaminated, int maxLength) { String objAsString = null; if (maybeContaminated!=null) { objAsString = maybeContaminated.toString(); } return sanitize(objAsString, maxLength); }  }
LogSanitizer { public String sanitize(Object maybeContaminated, int maxLength) { String objAsString = null; if (maybeContaminated!=null) { objAsString = maybeContaminated.toString(); } return sanitize(objAsString, maxLength); }  String sanitize(Object maybeContaminated, int maxLength); String sanitize(String maybeContaminated, int maxLength); }
LogSanitizer { public String sanitize(Object maybeContaminated, int maxLength) { String objAsString = null; if (maybeContaminated!=null) { objAsString = maybeContaminated.toString(); } return sanitize(objAsString, maxLength); }  String sanitize(Object maybeContaminated, int maxLength); String sanitize(String maybeContaminated, int maxLength);  }