diff --git a/pom.xml b/pom.xml
index 5225684..1b45336 100644
--- a/pom.xml
+++ b/pom.xml
@@ -394,6 +394,13 @@
${netty.build.version}
test
+
+ io.netty
+ netty-buffer
+ ${netty.version}
+ test-jar
+ test
+
io.netty
netty-handler
diff --git a/src/test/java/io/netty/buffer/api/adaptor/ByteBufAdaptorTest.java b/src/test/java/io/netty/buffer/api/adaptor/ByteBufAdaptorTest.java
new file mode 100644
index 0000000..92d873e
--- /dev/null
+++ b/src/test/java/io/netty/buffer/api/adaptor/ByteBufAdaptorTest.java
@@ -0,0 +1,25 @@
+package io.netty.buffer.api.adaptor;
+
+import io.netty.buffer.AbstractByteBufTest;
+import io.netty.buffer.ByteBuf;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+
+public class ByteBufAdaptorTest extends AbstractByteBufTest {
+ static ByteBufAllocatorAdaptor alloc;
+
+ @BeforeClass
+ public static void setUpAllocator() {
+ alloc = new ByteBufAllocatorAdaptor();
+ }
+
+ @AfterClass
+ public static void tearDownAllocator() throws Exception {
+ alloc.close();
+ }
+
+ @Override
+ protected ByteBuf newBuffer(int capacity, int maxCapacity) {
+ return alloc.buffer(capacity, capacity);
+ }
+}