@Test public void shouldReturnSameName() { Part part = new TestPart(name); String result = part.getName(); assertThat(result, is(name)); }
@Override public String getName() { return name; }
AbstractPart implements Part { @Override public String getName() { return name; } }
AbstractPart implements Part { @Override public String getName() { return name; } AbstractPart(String name); }
AbstractPart implements Part { @Override public String getName() { return name; } AbstractPart(String name); @Override void write(OutputStream out); @Override String getName(); }
AbstractPart implements Part { @Override public String getName() { return name; } AbstractPart(String name); @Override void write(OutputStream out); @Override String getName();  }