Vertex implements IdentifiedDataSerializable { @Nonnull public String getName() { return name; } Vertex();  Vertex(@Nonnull String name, @Nonnull SupplierEx<? extends Processor> processorSupplier);  Vertex(@Nonnull String name, @Nonnull ProcessorSupplier processorSupplier);  Vertex(@Nonnull String name, @Nonnull ProcessorMetaSupplier metaSupplier); static int checkLocalParallelism(int parallelism); int determineLocalParallelism(int defaultParallelism); @Nonnull Vertex localParallelism(int localParallelism); int getLocalParallelism(); @Nonnull String getName(); @Nonnull ProcessorMetaSupplier getMetaSupplier(); void updateMetaSupplier(@Nonnull UnaryOperator<ProcessorMetaSupplier> updateFn); @Override String toString(); @Override void writeData(@Nonnull ObjectDataOutput out); @Override void readData(@Nonnull ObjectDataInput in); @Override int getFactoryId(); @Override int getClassId(); static final int LOCAL_PARALLELISM_USE_DEFAULT; }
@Test public void when_constructWithName_then_hasThatName() { v = new Vertex("v", NoopP::new); assertEquals("v", v.getName()); }