Add a unit test for a Class.getDeclaringClass bug.

Bug: https://code.google.com/p/android/issues/detail?id=61003
Change-Id: I3e76f0ce9c4b4df91ab3eeaca956d2d735e52f6c