@Test
public void testModifyShouldPutANewStubDescriptorIntoTheMap() {

    //GIVEN
    Map<String, StubDescriptor> expected = new LinkedHashMap<>(normalStubDescriptors);
    expected.put(GROUPNAME_FIRST, stubDescriptor);
    given(stubDescriptor.getAttributes()).willReturn(attributes);
    given(attributes.getGroupName()).willReturn(GROUPNAME_FIRST);
    given(attributes.isValid()).willReturn(true);
    //WHEN
    underTest = new NewStubDescriptorCommand(inputStream, stubConfigurationJsonBuilder, sequenceDescriptorHolder);
    Map<String, StubDescriptor> result = underTest.modify(normalStubDescriptors);
    //THEN
    Assert.assertEquals(result, expected);
}