@Test
public void shouldSetPrimaryKey() throws Exception {

    final String name = "primaryKey";
    final PrimaryKey pk = this.table.setPrimaryKey( getTransaction(), name );
    assertThat( pk, is( notNullValue() ) );
    assertThat( pk.getName( getTransaction() ), is( name ) );
    assertThat( this.table.hasChild( getTransaction(), name ), is( true ) );
}