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

        super.add(resourceConfig);
        return true;
    }
@Test
    public void shouldNotAllowBlankNames() {

        ResourceConfigs resourceConfigs = new ResourceConfigs();
        resourceConfigs.add(new ResourceConfig(""));
        assertThat(resourceConfigs.size(), is(0));
        resourceConfigs.add(new ResourceConfig("   "));
        assertThat(resourceConfigs.size(), is(0));

    }