@Test
public void stubMethodMultiple() throws Exception {

    User user = new User(mockWebService, USER_ID, PASSWORD);
    when(mockWebService.isNetworkOffline()).thenReturn(true, false, true);
    user.login(mockLoginInterface);
    user.login(mockLoginInterface);
    user.login(mockLoginInterface);
    verify(mockWebService, times(1)).login(anyInt(), anyString(), any(Response.class));
}