package io.swagger.models;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;
public class ExternalDocsTest {
private ExternalDocs instance;
@BeforeMethod
public void setUp() throws Exception {
//given
instance = new ExternalDocs("description", "url");
}
@Test
public void testSetVendorExtension() {
String name = "x-vendor";
String value = "value";
//when
instance.setVendorExtension(name, value);
//then
assertEquals(instance.getVendorExtensions().get(name), value, "Must be able to retrieve the same value from the map");
}
}