@Test
public void placeManagerRevealRequestPlaceWhenGatekeeperCanReveal(
DummyPresenterWithGrantGatekeeper presenterWithGatekeeper) {
// Given
PlaceRequest placeRequest = new PlaceRequest.Builder().nameToken("dummyNameTokenWithGrantGatekeeper").build();
// When
placeManager.revealPlace(placeRequest);
deferredCommandManager.pump();
// Then
List<PlaceRequest> placeHierarchy = placeManager.getCurrentPlaceHierarchy();
assertEquals(1, placeHierarchy.size());
PlaceRequest finalPlaceRequest = placeManager.getCurrentPlaceRequest();
assertEquals(placeHierarchy.get(0), finalPlaceRequest);
assertEquals("dummyNameTokenWithGrantGatekeeper", finalPlaceRequest.getNameToken());
assertEquals(0, finalPlaceRequest.getParameterNames().size());
verify(presenterWithGatekeeper).prepareFromRequest(finalPlaceRequest);
verify(presenterWithGatekeeper).forceReveal();
}