assertEquals("Unexpected resource is got on getResource() method",
resource, opener.getResource());
Assert.assertNull("Unexpected resource is got on getUrl() method",
opener.getUrl());
URLReference ref = opener.getState(false).resources
.get(BrowserWindowOpenerState.locationResource);
Assert.assertTrue(
"Url reference in the state is not ResourceReference",
ref instanceof ResourceReference);
Assert.assertEquals("Unexpected resource saved in state", resource,