### Question:
HttpProtocolServer implements ProtocolServer { @Override public CompletableFuture<Void> expose(ExposedThing thing) { if (!started) { return failedFuture(new ProtocolServerException("Unable to expose thing before HttpServer has been started")); } log.info("HttpServer on '{}' port '{}' exposes '{}' at http: bindHost, actualPort, thing.getId()); things.put(thing.getId(), thing); for (String address : actualAddresses) { for (String contentType : ContentManager.getOfferedMediaTypes()) { if (true) { String href = address + "/" + thing.getId() + "/all/properties"; Form form = new Form.Builder() .setHref(href) .setContentType(contentType) .setOp(Operation.READ_ALL_PROPERTIES, Operation.READ_MULTIPLE_PROPERTIES) .build(); thing.addForm(form); log.debug("Assign '{}' for reading all properties", href); } exposeProperties(thing, address, contentType); exposeActions(thing, address, contentType); exposeEvents(thing, address, contentType); } } return completedFuture(null); } HttpProtocolServer(Config config); @SuppressWarnings({ "java:S107" })  HttpProtocolServer(String bindHost,
                       int bindPort,
                       List<String> addresses,
                       Service server,
                       Map<String, ExposedThing> things,
                       Map<String, Object> security,
                       String securityScheme,
                       boolean started,
                       int actualPort,
                       List<String> actualAddresses); @Override String toString(); @Override CompletableFuture<Void> start(Servient servient); @Override CompletableFuture<Void> stop(); @Override CompletableFuture<Void> expose(ExposedThing thing); @Override CompletableFuture<Void> destroy(ExposedThing thing); @Override URI getDirectoryUrl(); @Override URI getThingUrl(String id); int getPort();  }### Answer:
@Test public void exposeShouldAddForms() { HttpProtocolServer server = new HttpProtocolServer(bindHost, bindPort, List.of("http: server.expose(thing); verify(thing, timeout(1 * 1000L)).addForm(any()); }