@Test
public void should_return_all_views() throws ResourceNotFoundException {

    Hudson viewsResource = (Hudson) load("hudson/views.xml", Hudson.class);
    when(client.resource(anyString(), any(Class.class))).thenReturn(viewsResource);
    List<String> views = hudsonFinder.findViews();
    assertEquals(5, views.size());
    List<String> expectedViews = Arrays.asList("android", "on", "on-tools", "synthesis", "All");
    for (String expectedView : expectedViews) {
        assertTrue(views.contains(expectedView));
    }
}