public static PluginDefinition forRemotePlugin(PluginInfo remotePluginInfo) {
    return new AutoValue_PluginDefinition(
        checkNotNull(remotePluginInfo),
        Optional.empty(),
        Optional.empty(),
        false,
        Optional.empty());
  }
@Test
  public void forRemotePlugin_whenPassedNull_throwsException() {
    assertThrows(NullPointerException.class, () -> PluginDefinition.forRemotePlugin(null));
  }