Test cases for performance patch: 436679 & 436668

The code changes for m2e-core git repository:
https://git.eclipse.org/r/#/q/status%3Aopen+project%3Am2e/m2e-core,n,z

https://git.eclipse.org/r/#/c/28194/
https://git.eclipse.org/r/#/c/28192/