I like to think in these scenarios, you write your tests for your code as:
given input foo, my code calls library bar and expects a return of baz
You don't need to test the APIs or the libraries. You can mock the return and stub the original method call (if you need to test in isolation -- think APIs over the network).