* @throws MapperException
* @throws InvalidNameException
*/
public void test01OneResult() throws MapperException, InvalidNameException {
/* populate input */
Personne input = new Personne();
input.setName("NAQUIN");
input.setSurname("thiery");
NamingEnumeration enu = _answer01();
ctxmock.expects(once()).method("search").with(eq(cn),
eq("fullName=NAQUIN thiery"), ANYTHING).will(returnValue(enu));
List ret = (List) sm.map(input, null);
assertEquals("Return list should contain one element", 1, ret.size());