"Korea", "move", "toward", "ending", "its", "nuclear", "weapons",
"programs", "." };
Span[] names1 = nameFinder.find(sentence);
assertEquals(new Span(0, 4, "location"), names1[0]);
assertEquals(new Span(5, 7, "person"), names1[1]);
assertEquals(new Span(10, 12, "location"), names1[2]);
assertEquals(new Span(28, 30, "location"), names1[3]);
assertEquals("location", names1[0].getType());
assertEquals("person", names1[1].getType());
assertEquals("location", names1[2].getType());
assertEquals("location", names1[3].getType());
sentence = new String[] { "Scott", "Snyder", "is", "the", "director", "of",
"the", "Center", "for", "U", ".", "S", ".", "Korea", "Policy", "." };
Span[] names2 = nameFinder.find(sentence);
assertEquals(2, names2.length);
assertEquals(new Span(0, 2, "person"), names2[0]);
assertEquals(new Span(7, 15, "organization"), names2[1]);
assertEquals("person", names2[0].getType());
assertEquals("organization", names2[1].getType());
}