### Question:
DefaultManagedArtifact implements ManagedArtifact { @SuppressWarnings("unchecked") public <T extends RequestParameters> T getRequestParameters() { return (T) managedArtifactRequestParameters; } DefaultManagedArtifact();   DefaultManagedArtifact(String pathName); @SuppressWarnings("unchecked") T getRequestParameters(); void initFromPath(String absolutePath); void initFromUploadedArtifact(UploadedArtifact uploaded); String getArtifactName(); byte[] getArtifactContents(); boolean matchesPathInfo(String pathInfo); boolean isExpired(); String getHttpContentType(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); String getAbsolutePath();  }### Answer:
@Test public void testRequestParameters() { DefaultManagedArtifact managedArtifact = new DefaultManagedArtifact(artifactFileOnePath); Assert.assertTrue(managedArtifact.getRequestParameters() instanceof DefaultRequestParameters); Assert.assertTrue(managedArtifact.getRequestParameters().getParameters().containsKey("uid")); Assert.assertTrue(managedArtifact.getRequestParameters().getParameters() .containsKey(ManagedArtifact.ARTIFACT_FILE_NAME)); Assert.assertTrue(managedArtifact.getRequestParameters().getParameters() .containsKey(ManagedArtifact.ARTIFACT_FOLDER_NAME)); }