### Question:
NpmPackageInfo implements Serializable, ProducerConsumerItem { void splitScopeFromName() { if (StringUtils.startsWith(name, "@") && StringUtils.contains(name, "/")) { String[] splitValues = StringUtils.split(name, "/"); scope = splitValues[0]; name = splitValues[1]; } } @SuppressWarnings("unused")  NpmPackageInfo();  NpmPackageInfo(String name, String version, String scope); String getName(); void setName(String name); String getVersion(); void setVersion(String version); String getScope(); void setScope(String scope); void readPackageInfo(InputStream inputStream); String getModuleId(); String getExpectedPackedFileName(); String getDeployPath(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test(dataProvider = "splitScopeFromNameProvider") public void testSplitScopeFromName(String scope, String name, String expectedScope, String expectedName) { NpmPackageInfo npmPackageInfo = new NpmPackageInfo(name, "", scope); npmPackageInfo.splitScopeFromName(); assertEquals(npmPackageInfo.getScope(), expectedScope); assertEquals(npmPackageInfo.getName(), expectedName); }