@Test
public void testFindCommiters() throws ResourceNotFoundException {

    HudsonUser user = new HudsonUser();
    user.setId("jsmadja");
    user.setName("Julien Smadja");
    user.setEmail("jsmadja@xebia.fr");
    when(client.resource(anyString(), any(Class.class))).thenReturn(user);
    Set<HudsonCommiter> commiters = hudsonFinder.findCommiters(new String[] { "Julien Smadja" });
    HudsonCommiter commiter = commiters.iterator().next();
    assertEquals("jsmadja", commiter.getId());
    assertEquals("Julien Smadja", commiter.getName());
    assertEquals("jsmadja@xebia.fr", commiter.getEmail());
}