@Test public void fromNearbyPerson() { NearbyPerson person = new NearbyPerson("googlePlusId", "N", "Name", null); LetterSource source = new LetterSource(person); assertEquals("N", source.letter); assertEquals("Name", source.displayName); assertEquals("googlePlusId", source.googlePlusId); assertEquals(1, source.available); assertEquals("Name", source.toString()); }
@Override public String toString() { return displayName; }
LetterSource { @Override public String toString() { return displayName; } }
LetterSource { @Override public String toString() { return displayName; } LetterSource();  LetterSource(NearbyPerson other); }
LetterSource { @Override public String toString() { return displayName; } LetterSource();  LetterSource(NearbyPerson other); @Override String toString(); }
LetterSource { @Override public String toString() { return displayName; } LetterSource();  LetterSource(NearbyPerson other); @Override String toString(); public Long _id; public String googlePlusId; public String letter; public String displayName; public int available; }