NhsCodeValidator { private NhsCodeValidator() {} private  NhsCodeValidator(); static boolean nhsNumberValid(String nhsNumber);  }
@Test public void nhsCodeValidatorTest() { assertThat(NhsCodeValidator.nhsNumberValid("0123456789")).isTrue(); assertThat(NhsCodeValidator.nhsNumberValid(null)).isFalse(); assertThat(NhsCodeValidator.nhsNumberValid("")).isFalse(); assertThat(NhsCodeValidator.nhsNumberValid("012345678")).isFalse(); assertThat(NhsCodeValidator.nhsNumberValid("01234567890")).isFalse(); assertThat(NhsCodeValidator.nhsNumberValid("012345678A")).isFalse(); }