tests BufferImpl. + changement deprecated junit.framework to org.junit.Assert.