### Question:
DicomUidValidator { public static boolean isPatternValid(String uid) { if (StringUtils.isBlank(uid)) { return false; } return VALIDATION_PATTERN.matcher(uid) .matches(); }  static boolean isValid(String uid); static boolean isLengthValid(String uid); static boolean isPatternValid(String uid);  }### Answer:
@Test public void isPatternValid_shouldReturnFalseGivenNull() throws Exception { assertFalse(DicomUidValidator.isPatternValid(null)); }
@Test public void isPatternValid_shouldReturnFalseGivenEmptyString() throws Exception { assertFalse(DicomUidValidator.isPatternValid(" ")); }
@Test public void isPatternValid_shouldReturnFalseForUidContainingNonsignificantLeadingZeros() throws Exception { String uid = "1.2.04.12.10.200"; assertFalse(DicomUidValidator.isPatternValid(uid)); }