@Test
public void testToDataRecordCollectionEquals() throws Exception {

	when(
		_ddlRecordSet.getDDMStructureId()
	).thenReturn(
		123L
	);
	when(
		_ddlRecordSet.getDescriptionMap()
	).thenReturn(
		HashMapBuilder.put(
			LocaleUtil.BRAZIL, "Descrição"
		).put(
			LocaleUtil.US, "Description"
		).build()
	);
	when(
		_ddlRecordSet.getGroupId()
	).thenReturn(
		789L
	);
	when(
		_ddlRecordSet.getNameMap()
	).thenReturn(
		HashMapBuilder.put(
			LocaleUtil.BRAZIL, "Nome"
		).put(
			LocaleUtil.US, "Name"
		).build()
	);
	when(
		_ddlRecordSet.getRecordSetId()
	).thenReturn(
		456L
	);
	when(
		_ddlRecordSet.getRecordSetKey()
	).thenReturn(
		"RecordSetId"
	);
	Assert.assertEquals(
		new DataRecordCollection() {
			{
				setDataDefinitionId(123L);
				setDataRecordCollectionKey("RecordSetId");
				setDescription(
					HashMapBuilder.<String, Object>put(
						"en_US", "Description"
					).put(
						"pt_BR", "Descrição"
					).build());
				setId(456L);
				setName(
					HashMapBuilder.<String, Object>put(
						"en_US", "Name"
					).put(
						"pt_BR", "Nome"
					).build());
				setSiteId(789L);
			}
		},
		DataRecordCollectionUtil.toDataRecordCollection(_ddlRecordSet));
}