public void testDetermineCauseChainWithDefaultExtractors() {
ThrowableAnalyzer analyzer = this.standardAnalyzer;
assertEquals("Unexpected number of registered types", 2, analyzer.getRegisteredTypes().length);
Throwable[] chain = analyzer.determineCauseChain(this.testTrace[0]);
// Element at index 2 is a NonStandardException which cannot be analyzed further by default
assertEquals("Unexpected chain size", 3, chain.length);
for (int i = 0; i < 3; ++i) {
assertEquals("Unexpected chain entry: " + i, this.testTrace[i], chain[i]);