public int length()
    {
        return length;
    }
@Test
    public static void testLength()
    {
        for (int i = 1; i <= 10; i++) {
            Bitmap bitmap = new Bitmap(i * 8);
            assertEquals(bitmap.length(), i * 8);
        }
    }