public void testPlainGetProfile() throws Exception {
Object[] params = new Object[] {"1.0", "prfB"};
String[] signature = new String[]{ String.class.getName(), String.class.getName()};
CompositeData cdata = (CompositeData) server.invoke(ProfileManagement.OBJECT_NAME, "getProfile", params, signature);
ProfileState prfB = (ProfileState) OpenTypeGenerator.fromOpenData(cdata.getCompositeType(), ProfileState.class.getClassLoader(), cdata);
Assert.assertEquals(version10.getProfile("prfB"), prfB.toProfile());
}
@Test
public void testProfileStateRoundTrip() throws Exception {
CompositeType ctype = getProfileStateType();