DANameFactory { @Nonnull public static DAName simpleFromQualified(@Nonnull DAName daName) { return simpleFromQualified(daName.getName()); } private  DANameFactory(); @Nonnull static DANameImpl from(@Nonnull String string); @Nonnull static DAName fromPrimitiveKind(@Nonnull DATypeKind kind); @Nonnull static DAName simpleFromQualified(@Nonnull DAName daName); @Nonnull static DAName simpleFromQualified(@Nonnull String qualifiedName); @Nullable static DAName packageNameFromQualified(@Nullable DAName qualifiedName); @Nonnull static DAName wildcard(); @Nonnull static DAName voidDAName();  }
@Test public void simpleFromQualified() throws Exception { assertThat(DANameFactory.simpleFromQualified(DANameFactory.from(TOTO)).getName()).isEqualTo(TOTO); assertThat(DANameFactory.simpleFromQualified(DANameFactory.from("a." + TOTO)).getName()).isEqualTo(TOTO); assertThat(DANameFactory.simpleFromQualified(DANameFactory.from("d.b.a." + TOTO)).getName()).isEqualTo(TOTO); }