EasyMockHelper mockHelper = new EasyMockHelper();
// mocks
IApplication mockApplication = mockHelper.createMock(IApplication.class);
SquirrelPreferences mockPreferences = mockHelper.createMock(SquirrelPreferences.class);
IUpdateSettings mockUpdateSettings = mockHelper.createMock(IUpdateSettings.class);
expect(mockApplication.getSquirrelPreferences()).andStubReturn(mockPreferences);
expect(mockPreferences.getUpdateSettings()).andStubReturn(mockUpdateSettings);
expect(mockUpdateSettings.getUpdateServer()).andStubReturn("aTestServer");
expect(mockUpdateSettings.getUpdateServerPort()).andStubReturn("aTestServerPort");