### Question:
OrcKing { public void makeRequest(Request req) { chain.handleRequest(req); } OrcKing(); void makeRequest(Request req);  }### Answer:
@Test public void testMakeRequest() { final OrcKing king = new OrcKing(); for (final Request request : REQUESTS) { king.makeRequest(request); assertTrue( request.isHandled(), "Expected all requests from King to be handled, but [" + request + "] was not!" ); } }
@Test public void testMakeRequest() { final var king = new OrcKing(); REQUESTS.forEach(request -> { king.makeRequest(request); assertTrue( request.isHandled(), "Expected all requests from King to be handled, but [" + request + "] was not!" ); }); }
@Test public void testMakeRequest() throws Exception { final OrcKing king = new OrcKing(); for (final Request request : REQUESTS) { king.makeRequest(request); assertTrue( request.isHandled(), "Expected all requests from King to be handled, but [" + request + "] was not!" ); } }