@Override
    public boolean equals(final Object o) {
        if(this == o) {
            return true;
        }
        if(o == null || getClass() != o.getClass()) {
            return false;
        }
        final LoggingConfiguration that = (LoggingConfiguration) o;

        if(enabled != that.enabled) {
            return false;
        }
        if(!Objects.equals(loggingTarget, that.loggingTarget)) {
            return false;
        }
        return true;
    }
@Test
    public void testEquals() {
        assertEquals(LoggingConfiguration.empty(), new LoggingConfiguration());
        assertEquals(new LoggingConfiguration(true), new LoggingConfiguration(true));
        assertEquals(new LoggingConfiguration(false), new LoggingConfiguration(false));
        assertNotEquals(new LoggingConfiguration(true), new LoggingConfiguration(false));
        assertNotEquals(new LoggingConfiguration(true), new LoggingConfiguration(true, "a"));
        assertNotEquals(new LoggingConfiguration(true, "b"), new LoggingConfiguration(true, "a"));
    }