@Override
  public String getImageFile() {
    return imageFile;
  }
@Test
  public void testFragmentMergeWithNull() {
    PluginInterface plugin =
      new Plugin(
        new String[] {"plugintest"}, BasePluginType.class, String.class, "", "plugin test", "",
        "a", false, null, false, new HashMap<>(), Collections.emptyList(), null,
        null, null, null, null );

    plugin.merge( null );
    assertEquals( "a", plugin.getImageFile() );

    PluginInterface fragment = mock( PluginInterface.class );
    when( fragment.getImageFile() ).thenReturn( "b" );

    plugin.merge( fragment );
    assertEquals( "b", plugin.getImageFile() );

    when( fragment.getImageFile() ).thenReturn( null );

    plugin.merge( fragment );
    assertEquals( "b", plugin.getImageFile() );
  }