Java client and integration tests for trash can