FactoryPal is a scala framework that lets you create objects as test data. All you have to do is define…