@Test
public void createArtifactTemplate() throws Exception {

    this.setRevisionTo("origin/plain");
    // assure that the artifact type exists
    QName artifactTypeQName = TestWineryRepositoryClient.client.getArtifactTypeQNameForExtension("war");
    assertNotNull(artifactTypeQName, "Artifact Type for .war does not exist");
    // assure that the artifact template does not yet exist
    // one possibility is to delete the artifact template, the other
    // possibility is to
    QName artifactTemplateQName = new QName(TestWineryRepositoryClient.NAMESPACE_FOR_NEW_ARTIFACTS, "artifactTemplate");
    ArtifactTemplateId atId = new ArtifactTemplateId(artifactTemplateQName);
    // ensure that the template does not exist yet
    TestWineryRepositoryClient.client.forceDelete(atId);
    TestWineryRepositoryClient.client.createArtifactTemplate(artifactTemplateQName, artifactTypeQName);
}