public void testAccessTokens() {
String uid = UUID.randomUUID().toString();
TransportAccessToken t = new TransportAccessToken(uid, TransportType.Dummy, "accessToken"+uid, "accessSecret"+uid);
datastore.saveTransportAccessToken(t);
assertTrue("found new token", datastore.getInstalledTransports(uid).contains(TransportType.Dummy));
datastore.deleteTransportAccessToken(uid, TransportType.Dummy);
assertFalse("deleted new token", datastore.getInstalledTransports(uid).contains(TransportType.Dummy));
datastore.saveTransportAccessToken(t);
TransportAccessToken tt = datastore.getAccessToken(uid, TransportType.Dummy);
assertEquals("access secret OK", t.getAccessSecret(), tt.getAccessSecret());
assertEquals("access token OK", t.getAccessToken(), tt.getAccessToken());
}