### Question:
SphereProjectScope extends Base implements SphereScope { public static SphereProjectScope ofScopeString(final String scope) { return of(scope); } private  SphereProjectScope(final String scope); static SphereProjectScope of(final String scope); @Override String toScopeString(); static SphereProjectScope ofScopeString(final String scope); @JsonValue String getScope(); final static SphereProjectScope MANAGE_PROJECT; final static SphereProjectScope MANAGE_PRODUCTS; final static SphereProjectScope VIEW_PRODUCTS; final static SphereProjectScope MANAGE_ORDERS; final static SphereProjectScope VIEW_ORDERS; final static SphereProjectScope MANAGE_SHOPPING_LISTS; final static SphereProjectScope VIEW_SHOPPING_LISTS; final static SphereProjectScope MANAGE_MY_ORDERS; final static SphereProjectScope MANAGE_CUSTOMERS; final static SphereProjectScope VIEW_CUSTOMERS; final static SphereProjectScope MANAGE_MY_PROFILE; final static SphereProjectScope MANAGE_TYPES; final static SphereProjectScope VIEW_TYPES; final static SphereProjectScope MANAGE_PAYMENTS; final static SphereProjectScope VIEW_PAYMENTS; final static SphereProjectScope CREATE_ANONYMOUS_TOKEN; final static SphereProjectScope MANAGE_SUBSCRIPTIONS; final static SphereProjectScope VIEW_PROJECT_SETTINGS; final static SphereProjectScope MANAGE_EXTENSIONS; final static SphereProjectScope MANAGE_PROJECT_SETTINGS; final static SphereProjectScope MANAGE_STATES; final static SphereProjectScope VIEW_STATES; final static SphereProjectScope VIEW_MESSAGES; final static SphereProjectScope MANAGE_API_CLIENTS; final static SphereProjectScope VIEW_API_CLIENTS; final static SphereProjectScope MANAGE_DISCOUNT_CODES; final static SphereProjectScope VIEW_DISCOUNT_CODES; }### Answer:
@Test public void ofScopeString() { assertThat(SphereProjectScope.ofScopeString("manage_project")).isEqualTo(MANAGE_PROJECT); }
@Test public void scopeSerialization() { final String serializedScope = SphereJsonUtils.toPrettyJsonString(SphereProjectScope.ofScopeString("manage_project")); assertThat(serializedScope).isEqualTo("\"MANAGE_PROJECT\""); }