@Test void testOf() { final ScoreComponent component = ScoreComponent.of("abc", "def"); assertEquals("abc", component.name()); assertEquals("def", component.objective()); assertNull(component.color()); for(final TextDecoration decoration : TextDecoration.values()) { assertEquals(TextDecoration.State.NOT_SET, component.decoration(decoration)); } }