@Test
public void testGetPrefix() {

	DistinguishedName path = new DistinguishedName("uid=mtah.test, ou=people, ou=EU, o=example.com");
	Name prefix = path.getPrefix(0);
	assertThat(prefix.size()).isEqualTo(0);
	prefix = path.getPrefix(1);
	assertThat(prefix.size()).isEqualTo(1);
	assertThat(prefix.get(0)).isEqualTo("o=example.com");
	prefix = path.getPrefix(2);
	assertThat(prefix.size()).isEqualTo(2);
	assertThat(prefix.get(0)).isEqualTo("o=example.com");
	assertThat(prefix.get(1)).isEqualTo("ou=EU");
}