Working version replication. Junit tests