public static List<String> getStackFrameList(final Throwable t, int maxDepth) {
        final String stackTrace = getStackTrace(t);
        final String linebreak = System.lineSeparator();
        final StringTokenizer frames = new StringTokenizer(stackTrace, linebreak);
        final List<String> list = new ArrayList<>();
        for (int i = 0; i < maxDepth && frames.hasMoreTokens(); i++) {
            list.add(frames.nextToken());
        }
        return list;
    }
@Test
    void testGetStackFrameList() {
        List<String> stackFrameList = ExceptionUtils.getStackFrameList(exception);
        Assertions.assertNotEquals(10, stackFrameList.size());
    }