Add trash can to Java client, add integration tests