@SuppressWarnings("NullArgumentToVariableArgMethod")
@Test
public void testMakePath()
{

    Assert.assertEquals(ZKPaths.makePath(null, "/"), "/");
    Assert.assertEquals(ZKPaths.makePath("", null), "/");
    Assert.assertEquals(ZKPaths.makePath("/", null), "/");
    Assert.assertEquals(ZKPaths.makePath(null, null), "/");
    Assert.assertEquals(ZKPaths.makePath("/", "/"), "/");
    Assert.assertEquals(ZKPaths.makePath("", "/"), "/");
    Assert.assertEquals(ZKPaths.makePath("/", ""), "/");
    Assert.assertEquals(ZKPaths.makePath("", ""), "/");
    Assert.assertEquals(ZKPaths.makePath("foo", ""), "/foo");
    Assert.assertEquals(ZKPaths.makePath("foo", "/"), "/foo");
    Assert.assertEquals(ZKPaths.makePath("/foo", ""), "/foo");
    Assert.assertEquals(ZKPaths.makePath("/foo", "/"), "/foo");
    Assert.assertEquals(ZKPaths.makePath("foo", null), "/foo");
    Assert.assertEquals(ZKPaths.makePath("foo", null), "/foo");
    Assert.assertEquals(ZKPaths.makePath("/foo", null), "/foo");
    Assert.assertEquals(ZKPaths.makePath("/foo", null), "/foo");
    Assert.assertEquals(ZKPaths.makePath("", "bar"), "/bar");
    Assert.assertEquals(ZKPaths.makePath("/", "bar"), "/bar");
    Assert.assertEquals(ZKPaths.makePath("", "/bar"), "/bar");
    Assert.assertEquals(ZKPaths.makePath("/", "/bar"), "/bar");
    Assert.assertEquals(ZKPaths.makePath(null, "bar"), "/bar");
    Assert.assertEquals(ZKPaths.makePath(null, "bar"), "/bar");
    Assert.assertEquals(ZKPaths.makePath(null, "/bar"), "/bar");
    Assert.assertEquals(ZKPaths.makePath(null, "/bar"), "/bar");
    Assert.assertEquals(ZKPaths.makePath("foo", "bar"), "/foo/bar");
    Assert.assertEquals(ZKPaths.makePath("/foo", "bar"), "/foo/bar");
    Assert.assertEquals(ZKPaths.makePath("foo", "/bar"), "/foo/bar");
    Assert.assertEquals(ZKPaths.makePath("/foo", "/bar"), "/foo/bar");
    Assert.assertEquals(ZKPaths.makePath("/foo", "bar/"), "/foo/bar");
    Assert.assertEquals(ZKPaths.makePath("/foo/", "/bar/"), "/foo/bar");
    Assert.assertEquals(ZKPaths.makePath("foo", "bar", "baz"), "/foo/bar/baz");
    Assert.assertEquals(ZKPaths.makePath("foo", "bar", "baz", "qux"), "/foo/bar/baz/qux");
    Assert.assertEquals(ZKPaths.makePath("/foo", "/bar", "/baz"), "/foo/bar/baz");
    Assert.assertEquals(ZKPaths.makePath("/foo/", "/bar/", "/baz/"), "/foo/bar/baz");
    Assert.assertEquals(ZKPaths.makePath("foo", null, null), "/foo");
    Assert.assertEquals(ZKPaths.makePath("foo", "bar", null), "/foo/bar");
    Assert.assertEquals(ZKPaths.makePath("foo", null, "baz"), "/foo/baz");
}