Broke up Portfolio.getDbPortfolio() into testable units. Wrote unit tests in Groovy. Passed.