fix(Adapter): validateAdapterClass() must use getName()

Constant usage is removed