06c629a226
Motivation: PooledByteBuf.capacity(...) miss to enforce maxCapacity() and so its possible to increase the capacity of the buffer even if it will be bigger then maxCapacity(). Modifications: - Correctly enforce maxCapacity() - Add unit tests for capacity(...) calls. Result: Correctly enforce maxCapacity().