@Test
public void testHandleMetadataAddition() {

    final String metadata = "a_b_c";
    popup.handleMetadataAddition(metadata);
    assertThat(model.attributes).isEmpty();
    assertThat(model.metadataList).containsExactly(new RuleMetadata(metadata, ""));
}