### Question:
CreateNewClassDialogValidatorExImpl implements CreateNewClassDialogValidatorEx { @Override public boolean checkSuperclass(@NotNull String inputString) { return checkQualifiedName(inputString); } CreateNewClassDialogValidatorExImpl(Project project); static boolean isValidJavaIdentifier(String identifier); @Override boolean checkSuperclass(@NotNull String inputString); @Override boolean checkInterface(@NotNull String inputString); @Override boolean checkPackage(@NotNull String inputString); @Nullable @Override String getErrorText(String inputString); @NotNull @Override String getNameErrorText(@Nullable String inputString); @NotNull @Override String getSuperclassErrorText(@Nullable String inputString); @NotNull @Override String getInterfacesErrorText(@Nullable String inputString); @NotNull @Override String getNotAClassErrorText(@Nullable String inputString); @NotNull @Override String getNotAnInterfaceErrorText(@Nullable String inputString); @NotNull @Override String getPackageErrorText(@Nullable String inputString); @Override boolean checkInput(String inputString); @Override boolean canClose(String inputString); static final String INVALID_PACKAGE_MESSAGE; static final String INVALID_QUALIFIED_NAME_FOR_NEW_NAME; static final String INVALID_QUALIFIED_NAME_FOR_INTERFACE; static final String INVALID_QUALIFIED_NAME_FOR_SUPERCLASS; static final String INVALID_QUALIFIED_NAME; static final String NOT_A_VALID_INTERFACE; static final String NOT_A_VALID_CLASS; }### Answer:
@Test public void checkSuperclassGood() { assertTrue(validator.checkSuperclass("_abc123_XYZ__")); }
@Test public void checkSuperclassEmpty() { assertTrue(validator.checkSuperclass("")); }
@Test public void checkSuperclassLeadingNumber() { assertFalse(validator.checkSuperclass("0_abc123_XYZ__")); }
@Test public void checkSuperclassDash() { assertFalse(validator.checkSuperclass("_abc123-XYZ__")); }
@Test public void checkSuperclassComma() { assertFalse(validator.checkSuperclass("_abc123,XYZ_")); }
@Test public void checkSuperclassSpace() { assertFalse(validator.checkSuperclass("_abc123_XYZ _")); }