OAuth2Token extends AuthToken implements Parcelable { @Override public boolean isExpired() { return false; } OAuth2Token(String tokenType, String accessToken);  OAuth2Token(String tokenType, String accessToken, long createdAt); private  OAuth2Token(Parcel in); String getTokenType(); String getAccessToken(); @Override boolean isExpired(); @Override int describeContents(); @Override void writeToParcel(Parcel out, int flags); @Override boolean equals(Object o); @Override int hashCode(); static final String TOKEN_TYPE_BEARER; static final Parcelable.Creator<OAuth2Token> CREATOR; }
@Test public void testIsExpired() { final OAuth2Token token = new OAuth2Token(TOKEN_TYPE, ACCESS_TOKEN); assertFalse(token.isExpired()); }