### Question:
PersistenceTransformations { public static Scope toScope(PersistentScope persistenceScope) { Scope scope = null; if (persistenceScope != null) { scope = new Scope(); scope.setScope(persistenceScope.getScope()); scope.setPassExpiresIn(persistenceScope.getPassExpiresIn()); scope.setDescription(persistenceScope.getDescription()); scope.setCcExpiresIn(persistenceScope.getCcExpiresIn()); Integer refreshExpiresIn = persistenceScope.getRefreshExpiresIn() != null ? persistenceScope.getRefreshExpiresIn() : persistenceScope .getPassExpiresIn(); scope.setRefreshExpiresIn(refreshExpiresIn); } return scope; }  static Scope toScope(PersistentScope persistenceScope); static PersistentScope toPersistentScope(Scope scope); static ClientCredentials toClientCredentials(PersistentClientCredentials persistentClientCredentials); static PersistentClientCredentials toPersistentClientCredentials(ClientCredentials clientCredentials); static PersistentAuthCode toPersistentAuthCode(AuthCode authCode); static AuthCode toAuthCode(PersistentAuthCode persistentAuthCode); static PersistentAccessToken toPersistentAccessToken(AccessToken accessToken); static AccessToken toAccessToken(PersistentAccessToken persistentAccessToken); static ApplicationInfo toApplicationInfo(PersistentClientCredentials clientCredentials);  }### Answer:
@Test public void when_no_scope_found_return_null() throws Exception { Scope scope = PersistenceTransformations.toScope(null); assertNull(scope); }