Reference { public String toString() { String packageName = type.getPackage().getName(); return String.format("propoid: } @SuppressWarnings("unchecked")  Reference(P propoid);  Reference(Class<? extends P> type, long id); @Override boolean equals(Object o); @Override int hashCode(); Uri toUri(); String toString(); @SuppressWarnings("unchecked") static Reference<P> from(String string); static Reference<P> from(Uri uri); static Reference<P> from(Intent intent); Intent to(Intent intent); static Reference<P> from(Bundle arguments); Bundle to(Bundle arguments); final Class<? extends P> type; final long id; }
@Test public void testToString() { Foo foo = new Foo(); Row.setID(foo, 1l); assertEquals("propoid: new Reference<Foo>(foo).toString()); }