### Question:
AppsHandler extends Handler { @Override public boolean canHandle(Request request, NanoServer server) { String uri = request.getUri(); return uri.startsWith("/apps") || uri.startsWith("/ol"); } AppsHandler();  AppsHandler(File appsDir); @Override void init(NanoServer server); @Override boolean canHandle(Request request, NanoServer server); @Override Response handle(Request request, NanoServer server);  }### Answer:
@Test public void testCanHandle() { handler.canHandle(new Request("/apps", null), null); handler.canHandle(new Request("/apps/foobar", null), null); }