UpdateChecker updateChecker = mock(UpdateChecker.class);
when(webInterface.getCore().getUpdateChecker()).thenReturn(updateChecker);
UpdateChecker updateChecker = mock(UpdateChecker.class);
when(webInterface.getCore().getUpdateChecker()).thenReturn(updateChecker);
when(webInterface.getCurrentSone(toadletContext)).thenReturn(currentSone);
when(webInterface.getCurrentSone(eq(toadletContext), anyBoolean())).thenReturn(currentSone);
when(webInterface.getNotifications(currentSone)).thenReturn(new ArrayList<Notification>());
when(webInterface.getCurrentSone(toadletContext)).thenReturn(currentSone);
when(webInterface.getCurrentSone(eq(toadletContext), anyBoolean())).thenReturn(currentSone);
when(webInterface.getNotifications(currentSone)).thenReturn(new ArrayList<Notification>());