### Question:
Xs2aEndpointChecker { public boolean isXs2aEndpoint(HttpServletRequest request) { String requestPath = requestPathResolver.resolveRequestPath(request); return Stream.of(Xs2aEndpointPathConstant.getAllXs2aEndpointPaths()) .anyMatch(en -> matcher.match(en, requestPath)); }  boolean isXs2aEndpoint(HttpServletRequest request);  }### Answer:
@Test void isXs2aEndpoint_true() { when(requestPathResolver.resolveRequestPath(request)).thenReturn(XS2A_ENDPOINT); boolean actual = xs2aEndpointChecker.isXs2aEndpoint(request); assertTrue(actual); }
@Test void isXs2aEndpoint_false() { when(requestPathResolver.resolveRequestPath(request)).thenReturn(NOT_XS2A_ENDPOINT); boolean actual = xs2aEndpointChecker.isXs2aEndpoint(request); assertFalse(actual); }