@Test
public void should_keep_custom_view() {

    List<String> defaultViews = new ArrayList<String>(asList("Tous", "MyCusomView"));
    when(hudson.findViews()).thenReturn(defaultViews);
    List<String> views = jenkinsConnection.findViews();
    assertEquals(1, views.size());
}