@Test
public void testToStringSwitchSeparator() {

	PathHolder pathHolder = new PathHolder(Paths.get(""));
	char foreignSeparatorChar = CharPool.SLASH;
	char separatorChar = File.separatorChar;
	if (separatorChar == CharPool.SLASH) {
		foreignSeparatorChar = CharPool.BACK_SLASH;
	}
	ReflectionTestUtil.setFieldValue(
		pathHolder, "_pathString",
		"testFolder" + foreignSeparatorChar + "testFile");
	char originalSeparatorChar = ReflectionTestUtil.getAndSetFieldValue(
		pathHolder, "_SEPARATOR_CHAR", foreignSeparatorChar);
	try {
		Assert.assertEquals(
			"testFolder" + separatorChar + "testFile",
			pathHolder.toString());
	}
	finally {
		ReflectionTestUtil.setFieldValue(
			pathHolder, "_SEPARATOR_CHAR", originalSeparatorChar);
	}
}