### Question:
DB2Connector implements AuthenticateOp, SchemaOp, CreateOp,
        SearchOp<FilterWhereBuilder>, DeleteOp, UpdateAttributeValuesOp, TestOp, PoolableConnector,
        AttributeNormalizer { void checkDB2Validity(String accountID) { if (accountID.length() > DB2Specifics.MAX_NAME_SIZE) { throw new IllegalArgumentException(cfg.getConnectorMessages().format( DB2Messages.USERNAME_LONG, null, DB2Specifics.MAX_NAME_SIZE, accountID)); } if (DB2Specifics.containsIllegalDB2Chars(accountID.toCharArray())) { throw new IllegalArgumentException(cfg.getConnectorMessages().format( DB2Messages.USERNAME_CONTAINS_ILLEGAL_CHARACTERS, null, accountID)); } if (DB2Specifics.isReservedName(accountID.toUpperCase())) { throw new IllegalArgumentException(cfg.getConnectorMessages().format( DB2Messages.USERNAME_IS_RESERVED_WORD, null, accountID)); } } DB2Connector(); Uid authenticate(ObjectClass objectClass, String username, GuardedString password,
            OperationOptions options); Schema schema(); void checkAlive(); void dispose(); DB2Configuration getConfiguration(); void init(Configuration cfg); FilterTranslator<FilterWhereBuilder> createFilterTranslator(ObjectClass oclass,
            OperationOptions options); void executeQuery(ObjectClass oclass, FilterWhereBuilder where, ResultsHandler handler,
            OperationOptions options); Uid create(ObjectClass oclass, Set<Attribute> attrs, OperationOptions options); void delete(ObjectClass objClass, Uid uid, OperationOptions options); void test(); Uid update(ObjectClass objclass, Uid uid, Set<Attribute> attrs, OperationOptions options); Uid addAttributeValues(ObjectClass objclass, Uid uid, Set<Attribute> valuesToAdd,
            OperationOptions options); Uid removeAttributeValues(ObjectClass objclass, Uid uid, Set<Attribute> valuesToRemove,
            OperationOptions options); Attribute normalizeAttribute(ObjectClass oclass, Attribute attribute);  }### Answer:
@Test(enabled = false) private void testFailForValidity(DB2Connector connector, String name, String msg) { try { connector.checkDB2Validity(name); Assert.fail(msg); } catch (RuntimeException e) { } }