@Test
public void getMetatableMaster() throws Exception {

    MetatableDTO metatableDTO1 = TestHelper
            .getMetatableDTO(metatableMasterUuid, MavenUtil.getCurrentVersion(),
                    MetatableType.MASTER, lastUpdateTimeStamp1);
    MetatableDTO metatableDTO2 = TestHelper
            .getMetatableDTO(metatableSnapShot1Uuid, MavenUtil.getCurrentVersion(),
                    MetatableType.SNAPSHOT, lastUpdateTimeStamp2);
    MetatableDTO metatableDTO3 = TestHelper
            .getMetatableDTO(metatableSnapShot2Uuid, MavenUtil.getCurrentVersion(),
                    MetatableType.SNAPSHOT, lastUpdateTimeStamp3);
    MetatableDTO saved1 = service.saveMetatable(metatableDTO1);
    MetatableDTO saved2 = service.saveMetatable(metatableDTO2);
    MetatableDTO saved3 = service.saveMetatable(metatableDTO3);
    MetatableDTO masterMetatableDTO = service.getMetatableMaster(metatableMasterUuid);
    assertNotNull(masterMetatableDTO);
    assertEquals(masterMetatableDTO.getLastUpdateTimestamp(), lastUpdateTimeStamp1);
}