@Test
    public void testPrimitive() {
        assertEquals(BLUE_STR, blue.getName());
        assertTrue(blue.contains(blue));

        Marker blue2 = factory.getMarker(BLUE_STR);
        assertEquals(BLUE_STR, blue2.getName());
        assertEquals(blue, blue2);
        assertTrue(blue.contains(blue2));
        assertTrue(blue2.contains(blue));
    }
Unit test BasicMarker

@author Ceki G&uuml;lc&uuml;
@author Joern Huxhorn
slf4j-api/src/test/java/org/slf4j/basicTests/BasicMarkerTest.java