@Override
    public boolean add(ResourceConfig resourceConfig) {
        if (this.contains(resourceConfig) || isBlank(resourceConfig.getName())) {
            return false;
        }

        super.add(resourceConfig);
        return true;
    }
@Test
    public void shouldNotAddDuplicateResources() {
        ResourceConfigs expected = new ResourceConfigs();
        expected.add(new ResourceConfig("jdk1.4"));
        expected.add(new ResourceConfig("jdk1.5"));

        ResourceConfigs actual = new ResourceConfigs();
        actual.add(new ResourceConfig("jdk1.4"));
        actual.add(new ResourceConfig("jdk1.5"));
        actual.add(new ResourceConfig("Jdk1.5"));
        assertThat(expected, is(actual));
    }