diff --git a/terraform/context_import_test.go b/terraform/context_import_test.go
index <HASH>..<HASH> 100644
--- a/terraform/context_import_test.go
+++ b/terraform/context_import_test.go
@@ -39,6 +39,33 @@ func TestContextImport_basic(t *testing.T) {
 	}
 }
 
+func TestContextImport_missingType(t *testing.T) {
+	p := testProvider("aws")
+	ctx := testContext2(t, &ContextOpts{
+		Providers: map[string]ResourceProviderFactory{
+			"aws": testProviderFuncFixed(p),
+		},
+	})
+
+	p.ImportStateReturn = []*InstanceState{
+		&InstanceState{
+			ID: "foo",
+		},
+	}
+
+	_, err := ctx.Import(&ImportOpts{
+		Targets: []*ImportTarget{
+			&ImportTarget{
+				Addr: "aws_instance.foo",
+				ID:   "bar",
+			},
+		},
+	})
+	if err == nil {
+		t.Fatal("should error")
+	}
+}
+
 func TestContextImport_refresh(t *testing.T) {
 	p := testProvider("aws")
 	ctx := testContext2(t, &ContextOpts{
terraform: test that missing type results in error on import