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