### Question:
Entity_Feature { public String getDevice_type() { if (device_type_id != null) { String[] model = device_type_id.split("\\."); try { return model[1]; } catch (Exception e) { return model[0]; } } else return null; } Entity_Feature(tracerengine Trac, Activity activity, String device_feature_model_id, int id, int devId, String device_usage_id, String address, String device_type_id, String description, String name, String state_key, String parameters, String value_type); int getId(); void setId(int id); JSONObject getDevice(); String getDescription(); void setDescription(String description); String getDevice_usage_id(); void setDevice_usage_id(String device_usage_id); String getAddress(); void setAddress(String address); int getDevId(); void setDevId(int devId); String getName(); void setName(String name); String getDevice_feature_model_id(); void setDevice_feature_model_id(String device_feature_model_id); String getState_key(); void setState_key(String state_key); String getParameters(); void setParameters(String parameters); String getValue_type(); void setValue_type(String value_type); int getRessources(); void setState(int state); String getDevice_type(); String getDevice_type_id(); void setDevice_type_id(String device_type_id); String getIcon_name();  }### Answer:
@Test public void testGetDevice_type() throws Exception { String device_type = client.getDevice_type(); Assert.assertEquals(null, device_type); client.setDevice_type_id("device_type"); device_type = client.getDevice_type(); Assert.assertEquals("device_type", device_type); client.setDevice_type_id("device_type.devicepart2"); device_type = client.getDevice_type(); Assert.assertEquals("devicepart2", device_type); }