write unit test for RequestConstrainManager
delete bin directory
refactor Credential::hasRole method using Stream and Lambda expression