@Test
    void verifyOperation() {
        val input = mock(StringSerializer.class);
        when(input.supports(any(File.class))).thenCallRealMethod();
        when(input.supports(anyString())).thenCallRealMethod();
        when(input.load(any(InputStream.class))).thenCallRealMethod();
        when(input.getContentTypes()).thenCallRealMethod();
        assertTrue(input.supports(new File("something")));
        assertTrue(input.supports("something"));
        assertTrue(input.load(new ByteArrayInputStream(ArrayUtils.EMPTY_BYTE_ARRAY)).isEmpty());
        assertEquals(List.of(MediaType.TEXT_PLAIN), input.getContentTypes());
    }
This is {@link StringSerializerTests}.

@author Misagh Moayyed
@since 6.3.0
core/cas-server-core-util-api/src/test/java/org/apereo/cas/util/serialization/StringSerializerTests.java