Completed the adapter and an initial integration test