package com.sequenceiq.cloudbreak.orchestrator.yarn.api;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class YarnEndpointTest {
@Test
public void testRemoveLeadingAndTrailingSlash() throws Exception {
final String testString = "//test/";
final String expectedString = "test";
YarnEndpoint yarnEndpoint = new YarnEndpoint("", "");
assertEquals(expectedString, yarnEndpoint.removeLeadingAndTrailingSlash(testString));
}
}