Improve ApplicationComponentTest.java implementation.