@Override
    public boolean isRedundant(final Object other) {
        if (other instanceof PatternInspector) {
            if (pattern.getObjectType()
                    .getType()
                    .equals(((PatternInspector) other).getPattern()
                                    .getObjectType()
                                    .getType())) {
                return inspectorList.isRedundant(((PatternInspector) other).inspectorList);
            } else {
                return false;
            }
        } else {
            return false;
        }
    }
@Test
    void testRedundancy02() throws Exception {
        final PatternInspector x = new PatternInspector(new Pattern("x",
                        new ObjectType("org.Address",
                                configurationMock),
                        configurationMock),
                mock(RuleInspectorUpdater.class),
                mock(AnalyzerConfiguration.class));

        assertThat(x.isRedundant(b)).isFalse();
        assertThat(b.isRedundant(x)).isFalse();
    }