public void TestFromReplica() { ICloneable <ContractState> cloneable = new ContractState(); cloneable.FromReplica(contract); ((ContractState)cloneable).ToJson().ToString().Should().Be(contract.ToJson().ToString()); }