A federal court in Maryland heard a class-action lawsuit Friday on how banks administer federal small business loans.