I think this code is duplicated we already have `InMemorySessionManager` in `Microsoft.WindowsAzure.Management.Test.Stubs`