ClusterConfig<Member> clusterConfig = new ClusterConfig<>()
.withLocalMember(new Member(new MemberConfig("foo")))
.withRemoteMembers(new Member(new MemberConfig("bar")), new Member(new MemberConfig("baz")));
SnapshotEntry snapshotEntry = new SnapshotEntry(1, clusterConfig, new byte[50]);
ConfigurationEntry configurationEntry = new ConfigurationEntry(1, clusterConfig);
OperationEntry operationEntry = new OperationEntry(1, "foo", Arrays.asList("bar", "baz"));
List<Entry> entries = Arrays.asList(snapshotEntry, configurationEntry, operationEntry);
SyncRequest request = new SyncRequest(UUID.randomUUID().toString(), 1, "foo", 4, 1, entries, 3);
SyncRequest result = reader.readRequest(writer.writeRequest(request));
Assert.assertEquals(result.id(), request.id());
Assert.assertEquals(result.term(), request.term());