@Test
    void verifyOperationByExceptionMessage() {
        val jp = mock(JoinPoint.class);
        val args = new Object[]{"something", RegisteredServiceTestUtils.getService()};
        when(jp.getArgs()).thenReturn(args);
        val context = mock(ApplicationContext.class);
        when(context.getMessage(eq("something"), any(),
            eq("RUNTIME_EXCEPTION"), any(Locale.class))).thenReturn("HelloWorld");
        val resolver = new MessageBundleAwareResourceResolver(context);
        var input = resolver.resolveFrom(jp, new RuntimeException("something"));
        assertTrue(input.length > 0);
        assertEquals("HelloWorld", input[0]);
    }
This is {@link MessageBundleAwareResourceResolverTests}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-audit-api/src/test/java/org/apereo/cas/audit/spi/resource/MessageBundleAwareResourceResolverTests.java