- * BUG: The class is currently named {@code CompleteableFutures} (extra {@code e} after
- * {@code Complet}) instead of the standard Java spelling {@code CompletableFutures},
- * which matches {@link java.util.concurrent.CompletableFuture}. Any caller that attempts
- * to import or reference the class by its correct name will receive a compile or runtime
- * error.
*/
@Test
void classNameShouldBeSpelledCorrectly() {
- // Class.forName will throw ClassNotFoundException because only "CompleteableFutures" exists
assertThatCode(() -> Class.forName("build.spawn.docker.okhttp.CompletableFutures"))
.doesNotThrowAnyException();
}
diff --git a/spawn-docker-okhttp/src/test/java/build/spawn/docker/okhttp/command/KillContainerRequestTests.java b/spawn-docker-okhttp/src/test/java/build/spawn/docker/okhttp/command/KillContainerRequestTests.java
new file mode 100644
index 0000000..9e6a7d6
--- /dev/null
+++ b/spawn-docker-okhttp/src/test/java/build/spawn/docker/okhttp/command/KillContainerRequestTests.java
@@ -0,0 +1,172 @@
+package build.spawn.docker.okhttp.command;
+
+import build.base.configuration.Configuration;
+import build.base.io.Terminal;
+import build.spawn.docker.Container;
+import build.spawn.docker.Executable;
+import build.spawn.docker.Image;
+import build.spawn.docker.option.Command;
+import build.spawn.docker.option.KillSignal;
+import okhttp3.HttpUrl;
+import org.junit.jupiter.api.Test;
+
+import java.lang.reflect.Field;
+import java.nio.file.Path;
+import java.util.Map;
+import java.util.Optional;
+import java.util.OptionalInt;
+import java.util.concurrent.CompletableFuture;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+/**
+ * Tests for the HTTP request built by {@link KillContainer}.
+ *
+ * @author reed.vonredwitz
+ * @since Apr-2026
+ */
+class KillContainerRequestTests {
+
+ /**
+ * A minimal {@link Container} stub that returns a fixed id and throws
+ * {@link UnsupportedOperationException} for all other methods.
+ */
+ private static final class StubContainer
+ implements Container {
+
+ private final String id;
+
+ StubContainer(final String id) {
+ this.id = id;
+ }
+
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ @Override
+ public Image image() {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public Configuration configuration() {
+ throw new UnsupportedOperationException();
+ }
+
+ @Override
+ public CompletableFuture