static <E extends Enum<E>> String enumName(final E state)
    {
        return null == state ? "null" : state.name();
    }
@Test
    void stateNameReturnsNameOfTheEnumConstant()
    {
        final ChronoUnit state = ChronoUnit.CENTURIES;
        assertEquals(state.name(), enumName(state));
    }